body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #f4f6f8;
}

.auth-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    position: relative;
}

.auth-card {
    width: 100%;
    background: #ffffff;
    padding: 45px 25px;
    border-radius: 18px;
    width: 100%;
    max-width: 360px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
    text-align: center;
}

.auth-card {
    animation: fadeUp 0.4s ease;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.logo {
    width: 110px;
    margin-bottom: 10px;
}

h1 {
    font-size: 22px;
    margin-bottom: 5px;
}

.subtitle {
    font-size: 14px;
    color: #8a8a8a;
    margin-bottom: 20px;
}

label {
    display: block;
    text-align: left;
    font-size: 13px;
    margin-bottom: 5px;
    margin-top: 10px;
}

input {
     width: 100%;
    padding: 14px;
    border-radius: 12px;
    border: 1px solid #e3e6ea;
    font-size: 15px;
    box-sizing: border-box;
    transition: all 0.2s ease;
}

.password-box {
    position: relative;
}

.password-box span {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
}


.btn-primary.loading {
    opacity: 0.8;
}

.btn-primary {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #f5b800, #ffcc33);
    border: none;
    border-radius: 14px;
    font-weight: bold;
    margin-top: 10px;
    cursor: pointer;
    font-size: 15px;
}

.btn-primary:disabled {
    cursor: not-allowed;
}

input:focus {
    outline: none;
    border: 1px solid #f5b800;
    box-shadow: 0 0 0 3px rgba(245, 184, 0, 0.15);
    transform: scale(1.01);
}

.btn-primary:active {
    transform: scale(0.97);
}

.link {
    margin-top: 15px;
    font-size: 14px;
}

.link a {
    color: #f5b800;
    text-decoration: none;
    font-weight: bold;
}

/*.erro {
    background: #ffe5e5;
    color: #d60000;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 10px;
    font-size: 13px;
}

.erro {
    animation: shake 0.3s;
}

@keyframes shake {
    0% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    50% { transform: translateX(5px); }
    75% { transform: translateX(-5px); }
    100% { transform: translateX(0); }
}*/


.erro {
    background: #ffe5e5;
    color: #d60000;
    padding: 12px;
    border-radius: 10px;
    margin-bottom: 12px;
    font-size: 13px;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}



.forgot {
    text-align: right;
    font-size: 13px;
    margin-bottom: 10px;
}

.forgot a {
    color: #f5b800;
    text-decoration: none;
}

.back-btn {
    position: fixed;
    top: 24px;
    left: 26px;
    z-index: 20;

    font-size: 14px;
    color: #475569;
    text-decoration: none;
    font-weight: 700;

    display: inline-flex;
    align-items: center;
    gap: 6px;

    min-height: 40px;
    padding: 0 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
    backdrop-filter: blur(10px);

    transition: all 0.2s ease;
}

.back-btn:hover {
    background: #fff;
    color: #111827;
    transform: translateX(-2px);
}

.termos {
    font-size: 12px;
    color: #888;
    text-align: center;
    margin-top: 15px;
    max-width: 360px;
}

.termos a {
    color: #f5b800;
    text-decoration: none;
}


/*REGISTER*/

.step-indicator {
    margin-bottom: 25px;
    text-align: center;
}

.step-text {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
}

.step-bar {
    width: 100%;
    height: 6px;
    background: #eee;
    border-radius: 10px;
    overflow: hidden;
}

.step-fill {
    height: 100%;
    background: linear-gradient(90deg, #ffc107, #ff9800);
    border-radius: 10px;
    transition: width 0.3s ease;
}

/* estados */
.step-1 { width: 33%; }
.step-2 { width: 66%; }
.step-3 { width: 100%; }



.senha-status {
    font-size: 12px;
    margin-top: 5px;
    margin-bottom: 10px;
    text-align: left;
}

/* cores */
.fraca { color: #d60000; }
.media { color: #ff9800; }
.forte { color: #2e7d32; }

/* borda erro */
.input-erro {
    border: 1px solid #d60000 !important;
    background: #fff5f5;
}

/* borda sucesso */
.input-ok {
    border: 1px solid #2e7d32 !important;
}

/* check */
.check {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #2e7d32;
    font-weight: bold;
}

.hidden {
    display: none;
}

.checkSenha{
    margin-right: 30px;
}


.field-group {
    margin-bottom: 15px;
}

.label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0px;
}

.checkbox-inline {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #666;
    cursor: pointer;
}

.checkbox-inline {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #666;
    cursor: pointer;

    white-space: nowrap; /* 🔥 ESSENCIAL */
}
.input-disabled {
    background: #f1f1f1 !important;
    color: #aaa;
    cursor: not-allowed;
    pointer-events: none;
    border: 1px solid #ddd !important;
}

.endereco-row {
    display: flex;
    gap: 10px;
}

.endereco-col {
    flex: 3;
}

.numero-col {
    flex: 1;
}

.cep-box {
    position: relative;
}

.cep-box input {
    padding-right: 35px;
}

.cep-icon {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 14px;
    color: #888;
}

.cep-icon:hover {
    color: #000;
}

.step-fill.step-3 {
    width: 100%;
}

.preview-box {
    margin-top: 20px;
}

.preview-card {
    background: #c8a31f;
    color: #fff;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
}

input,
select {
    width: 100%;
    padding: 14px;
    border-radius: 10px;
    border: 1px solid #ddd;
    font-size: 14px;
    outline: none;
    margin-top: 6px;
    margin-bottom: 14px;
    background: #fff;
}

select {
    appearance: none;
    background: #fff url("data:image/svg+xml;utf8,<svg fill='%23666' height='20' viewBox='0 0 20 20'><path d='M5 7l5 5 5-5z'/></svg>") no-repeat right 12px center;
    background-size: 16px;
}

.color-picker {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    padding: 10px;
    border-radius: 10px;
    border: 1px solid #ddd;
    margin-bottom: 14px;
}

.color-picker input {
    width: 40px;
    height: 40px;
    border: none;
    padding: 0;
}


.preview-title {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #666;
}

.preview-card {
    border-radius: 12px;
    overflow: hidden;
    background: #c8a31f;
    color: #fff;
}

.preview-header {
    padding: 16px;
    font-weight: bold;
    text-align: center;
    font-size: 16px;
}

.preview-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 16px;
    background: rgba(255,255,255,0.1);
}

.preview-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
}

.preview-logo img {
    width: 30px;
    height: 30px;
    border-radius: 6px;
}

.tema-selector {
    display: flex;
    gap: 10px;
    margin-bottom: 14px;
}

.tema-option {
    flex: 1;
    border-radius: 12px;
    padding: 16px;
    text-align: center;
    cursor: pointer;
    font-size: 14px;
    border: 2px solid #ddd;
    transition: all 0.2s ease;
}

/* esconde radio */
.tema-option input {
    display: none;
}

/* CLARO (default) */
.tema-claro {
    background: #ffffff;
    color: #333;
}

/* ESCURO */
.tema-escuro {
    background: #1a1a1a;
    color: #fff;
}

/* HOVER */
.tema-option:hover {
    transform: scale(1.02);
}

/* SELECIONADO (PADRÃO) */
.tema-option input:checked + span {
    font-weight: bold;
}

/* BORDA ATIVA */
.tema-option input:checked {
    outline: none;
}

.tema-option input:checked + span::before {
    content: "";
}

/* 🔥 ESTADO SELECIONADO REAL */
.tema-option input:checked + span {
    display: inline-block;
}

.tema-option input:checked + span {
    color: #c8a31f;
}

/* 🔥 BORDA QUANDO SELECIONADO */
.tema-option input:checked + span {
    position: relative;
}

.tema-option input:checked + span::after {
    content: "";
    position: absolute;
    inset: -14px;
    border: 2px solid #c8a31f;
    border-radius: 12px;
}

.tema-option.tema-escuro input:checked + span {
    color: #fff;
}   

.switch-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

/* estrutura */
.switch {
    position: relative;
    width: 60px;
    height: 32px;
}

.switch input {
    display: none;
}

/* trilho */
.slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: #ddd;
    border-radius: 50px;
    transition: all 0.3s ease;
}

/* bolinha */
.slider::before {
    content: "";
    position: absolute;
    height: 24px;
    width: 24px;
    left: 4px;
    top: 4px;
    background: #fff;
    border-radius: 50%;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

/* ATIVO (ESCURO) */
.switch input:checked + .slider {
    background: #1a1a1a;
}

/* bolinha desliza */
.switch input:checked + .slider::before {
    transform: translateX(28px);
    background: #fff;
}

/* efeito glow leve */
.switch input:checked + .slider {
    box-shadow: 0 0 8px rgba(0,0,0,0.3);
}


.preview-cardapio {
    margin-top: 10px;
    border-radius: 16px;
    overflow: hidden;
    font-family: sans-serif;
}

/* TOPO */
.preview-cardapio .topo {
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* CATEGORIAS */
.preview-cardapio .categorias {
    display: flex;
    gap: 10px;
    padding: 10px;
}

.preview-cardapio .cat {
    padding: 8px 16px;
    border-radius: 20px;
    border: none;
    cursor: pointer;

    transition: all 0.25s ease;
}

.preview-cardapio .cat:hover {
    transform: scale(1.05);
}


.preview-cardapio .cat.ativo {
    background: #2a2a2a;
    color: #fff;
}

/* LISTA */
.preview-cardapio .lista {
    padding: 10px;
}

/*.preview-cardapio .item {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    border-radius: 12px;
    padding: 10px;
}*/

.preview-cardapio .item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    border-radius: 16px;
    padding: 10px;
    margin: 10px 0;

    /* 🔥 NOVO */
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: all 0.25s ease;
}

.preview-cardapio .item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(0,0,0,0.12);
}

.preview-cardapio .item img {
    width: 90px;
    height: 90px;
    object-fit: cover;
    border-radius: 12px;
    align-self: flex-start; /* 🔥 garante topo alinhado */
}

.preview-cardapio .info {
    display: flex;
    text-align: left;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    flex: 1;
}

.preview-cardapio .info p {
    font-size: 13px;
    margin: 0;
    opacity: 0.7;
}

.preview-cardapio .info h3 {
    font-size: 16px;
    margin: 0;
    line-height: 1.2;
}

.preview-cardapio .preco {
    font-size: 15px;
    font-weight: bold;
    margin-top: 4px;
}

.preview-cardapio .add {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    font-weight: bold;

    /* 🔥 NOVO */
    box-shadow: 0 3px 8px rgba(0,0,0,0.25);
    transition: all 0.2s ease;
}

.preview-cardapio .add:hover {
    transform: scale(1.05);
}


.preview-cardapio .info {
    flex: 1;
}

.preview-cardapio .preco {
    font-weight: bold;
}

/* BOTÃO */
.preview-cardapio .add {
    border-radius: 50%;
    border: none;
    width: 35px;
    height: 35px;
}

/* FOOTER */
.preview-cardapio .footer {
    display: flex;
    justify-content: space-between;
    padding: 10px;
}

/* ===== TEMA CLARO ===== */
.tema-claro {
    background: #fcfcfc;
    color: #000;
}

.tema-claro .item {
    background: #eee;
}

.tema-claro .cat {
    background: #eee;
    color: #000;
}

.tema-claro .item {
    background: #eee;
}

/* ===== TEMA ESCURO ===== */
.tema-escuro {
    background: #0d0d0d;
    color: #fff;
}

.tema-escuro .item {
    background: #1c1c1c;
}

.tema-escuro .cat {
    background: #1c1c1c; /* igual card */
    color: #fff;
}

.topo {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.topo-centro {
    display: flex;
    align-items: center;
    gap: 10px;
}




.logo-topo-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 5px;
}

#logoPreviewTopo {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.topo-linha {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.preview-cardapio,
.preview-cardapio * {
    transition: background 0.3s ease, color 0.3s ease;
}

.preview-cardapio {
    transition: all 0.3s ease;
}

.header-preview {
    position: relative;
}

/*.banner img {
    width: 100%;
    height: 120px;
    object-fit: cover;
}*/

.header-info {
    padding: 10px;
    margin-top: -40px;
}

.logo-header {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #fff;
    padding: 3px;
    position: absolute;
    top: 70px;
    left: 15px;
}
.logo-header.hidden {
    display: none;
}

.logo-header img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.header-info h2 {
    text-align: left;
    margin-left: 70px;
    margin-top: 35px;
    font-size: 18px;
/*    margin-bottom: 10px;*/
    transition: all 0.3s ease;
}

.header-info.sem-logo h2 {
    margin-left: 0px;
}

.descricao-preview {
    font-size: 13px;
    opacity: 0.7;
    text-align: left;
    margin-bottom: 0px;
}

.info-extra {
    display: flex;
    gap: 10px;
    font-size: 12px;
    margin-top: 5px;
}

.status {
    display: inline-block;
    margin-top: 0px;
    color: green;
    font-weight: bold;
}


#logoPreviewTopo {
    background: #eee;
}

#logoPreviewTopo.tem-logo {
    background: transparent;
}

/* 🔥 FALLBACK INTELIGENTE DO BANNER */

.banner {
    width: 100%;
    height: 120px;
    border-radius: 12px 12px 0 0;
    overflow: hidden;

    /* estado padrão (fallback) */
    background: linear-gradient(135deg, #c8a31f, #a88717);

    display: flex;
    align-items: center;
    justify-content: center;
}

.banner.usando-logo img:hover {
    transform: scale(1.05);
}

/* quando tem imagem */
.banner.tem-imagem {
    background: none;
}

.banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 🔥 quando for logo no banner */
.banner.usando-logo img {
    width: 90px;
    height: 90px;

    object-fit: cover;

    border-radius: 50%;
    background: #fff;

    padding: 6px;

    box-shadow: 
        0 8px 20px rgba(0,0,0,0.25),
        0 2px 6px rgba(0,0,0,0.15);

    border: 3px solid #fff;

    transition: all 0.3s ease;
}

.input-erro {
    border: 2px solid #ff4d4f !important;
}

.input-ok {
    border: 2px solid #2ecc71 !important;
}

.slug-preview {
    font-size: 13px;
    color: #777;
    margin-top: -10px;
    margin-bottom: 10px;
}

.senha-requisitos {
    justify-items: left;
    color: #8a8a8a;
    font-size: 12px;
    margin-top: -8px;
}

.password-input {
    margin-bottom: 5px;
}

.toggleSenha {
    position: absolute;
    right: 40px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 16px;
    opacity: 0.7;
}


.remember-box {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 12px 0;
    cursor: pointer;
}

.remember-box input {
    display: none;
}

.remember-box span {
    width: 18px;
    height: 18px;
    border: 2px solid #ccc;
    border-radius: 4px;
    display: inline-block;
    position: relative;
    transition: all 0.2s ease;
}

.remember-box input:checked + span {
    background: #f5b800;
    border-color: #f5b800;
}

.remember-box input:checked + span::after {
    content: "✔";
    position: absolute;
    font-size: 12px;
    color: #000;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.remember-box p {
    margin: 0;
    font-size: 14px;
    color: #555;
}

.remember-box:hover span {
    border-color: #f5b800;
}

/* FORGOT PASSWORD */

.forgot-password-page {
    background:
        radial-gradient(circle at top, rgba(245, 184, 0, 0.08), transparent 34%),
        #f4f6f8;
}

.forgot-card {
    max-width: 420px;
    box-sizing: border-box;
    padding: 48px 28px 34px;
}

.auth-submit {
    min-height: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
    box-shadow: 0 14px 24px rgba(245, 184, 0, 0.22);
}

.auth-submit.loading {
    opacity: 0.86;
}

.auth-submit.cooldown {
    background: #eef2f7;
    color: #475569;
    box-shadow: none;
    border: 1px solid #e2e8f0;
}

.btn-countdown {
    min-width: 42px;
    min-height: 30px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.1);
    color: #111827;
    font-size: 13px;
    line-height: 1;
    display: none;
    align-items: center;
    justify-content: center;
}

.auth-submit.cooldown .btn-countdown {
    display: inline-flex;
    background: #ffffff;
    color: #111827;
    border: 1px solid #e2e8f0;
}

.auth-feedback {
    padding: 13px 14px;
    border-radius: 14px;
    margin-bottom: 14px;
    font-size: 14px;
    line-height: 1.35;
    text-align: center;
    border: 1px solid transparent;
    animation: fadeIn 0.2s ease;
}

.auth-feedback.error {
    background: #fee2e2;
    color: #991b1b;
    border-color: #fecaca;
}

.auth-feedback.success {
    background: #dcfce7;
    color: #166534;
    border-color: #bbf7d0;
}

.cooldown-info {
    margin-top: 14px;
    padding: 14px 15px;
    border-radius: 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #475569;
    align-items: center;
    gap: 12px;
    text-align: left;
}

.cooldown-info strong {
    display: block;
    color: #111827;
    font-size: 13px;
    margin-bottom: 2px;
}

.cooldown-info p {
    margin: 0;
    font-size: 12px;
    line-height: 1.35;
}

.cooldown-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fffbeb;
    border: 1px solid #fde68a;
    color: #b45309;
    font-weight: 900;
    font-size: 20px;
    box-shadow: 0 8px 18px rgba(245, 184, 0, 0.12);
}

.auth-link {
    margin-top: 18px;
    margin-bottom: 0;
}

.auth-link a {
    color: #6b21a8;
    font-weight: 700;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 480px) {
    .forgot-password-page {
        justify-content: flex-start;
        padding: 90px 0 24px;
    }

    .back-btn {
        top: 18px;
        left: 18px;
    }

    .forgot-card {
        max-width: none;
        width: 100%;
        border-radius: 24px 24px 0 0;
        padding: 48px 38px 34px;
        box-shadow: 0 -14px 34px rgba(15, 23, 42, 0.08);
    }

    .auth-submit {
        min-height: 58px;
        font-size: 16px;
    }
}
