/* Importando Inter com foco em pesos de impacto */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    /* Paleta Alimentação: Laranja (Energia/Fome) + Amadeirado (Conforto) */
    --primary: #f97316;
    /* Laranja vibrante */
    --primary-dark: #c2410c;
    --primary-light: rgba(249, 115, 22, 0.1);
    --accent: #fbbf24;
    /* Amarelo ouro (Gema/Molhos) */
    --white: #ffffff;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --danger: #ef4444;
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
}

body {
    /* Background com degradê de "alimento quente" e profundidade */
    /* background: radial-gradient(circle at top left, #ffedd5, #fdba74),
                url('https://www.transparenttextures.com/patterns/food.png'); Pattern sutil de comida */
    background: #f8fafc;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}


.logo {
    width: 90px;
    height: auto;
    margin-bottom: 24px;
    filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.1));
}

.auth-wrapper {
    width: 100%;
    max-width: 420px;
    animation: slideIn 0.8s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-box {
    /* Efeito de Vidro Fosco (Glassmorphism) */
    background: var(--white);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);

    padding: 50px 40px;
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    /* Sombra profunda e suave */
    box-shadow:
        0 25px 50px -12px rgba(0, 0, 0, 0.1),
        inset 0 0 0 1px rgba(255, 255, 255, 0.5);

    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.auth-box:hover {
    transform: translateY(-6px);
    box-shadow: 0 35px 60px -15px rgba(225, 29, 72, 0.15);
}

h2 {
    color: var(--dark);
    font-size: 30px;
    font-weight: 800;
    letter-spacing: -1.5px;
    margin-bottom: 10px;
}

.subtitle {
    color: var(--dark-secondary);
    font-size: 15px;
    margin-bottom: 35px;
    font-weight: 500;
}

/* --- ESTILO DOS CAMPOS (INPUTS) --- */
.input-group {
    text-align: left;
    margin-bottom: 22px;
}

.input-group label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 8px;
    margin-left: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.input-group input {
    width: 100%;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.6);
    border: 2px solid #f1f5f9;
    border-radius: 16px;
    font-size: 15px;
    font-weight: 500;
    color: var(--dark);
    transition: all 0.3s ease;
}

.input-group input:focus {
    outline: none;
    background: #ffffff;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-light);
    transform: scale(1.01);
}

/* --- BOTÃO DE AÇÃO "DELIVERY" --- */
.btn-primary {
    width: 100%;
    padding: 16px;
    margin-top: 10px;
    background: linear-gradient(135deg, var(--primary) 0%, #be123c 100%);
    color: white;
    border: none;
    border-radius: 16px;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 12px 24px -6px rgba(225, 29, 72, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px -8px rgba(225, 29, 72, 0.5);
    filter: brightness(1.1);
}

.btn-primary:active {
    transform: translateY(0) scale(0.98);
}

/* --- MENSAGENS DE FEEDBACK --- */
.msg-error,
.msg-success {
    padding: 14px;
    border-radius: 14px;
    font-size: 14px;
    margin-bottom: 25px;
    font-weight: 600;
    border: 1px solid transparent;
}

.msg-error {
    background: #fff1f2;
    color: var(--danger);
    border-color: #fecdd3;
    animation: shake 0.4s ease;
}

.msg-success {
    background: #ecfdf5;
    color: var(--success);
    border-color: #d1fae5;
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-5px);
    }

    75% {
        transform: translateX(5px);
    }
}

/* --- RODAPÉ --- */
.footer-links {
    margin-top: 30px;
    font-size: 14px;
    color: var(--dark-secondary);
}

.footer-links a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
    transition: 0.2s;
    border-bottom: 2px solid transparent;
}

.footer-links a:hover {
    border-bottom-color: var(--primary);
}

/* Responsividade Mobile */
@media (max-width: 480px) {
    .auth-box {
        padding: 40px 24px;
        border-radius: 24px;
    }
}







  /* Estilo do Loader (Cartinha Animada) */
        .loader-container {
            display: none; /* Escondido por padrão */
            justify-content: center;
            align-items: center;
            margin-top: 15px;
        }

        .loader-container i {
            font-size: 2rem;
            color: #f97316;
            animation: envelopeFly 1s infinite ease-in-out;
        }

        @keyframes envelopeFly {
            0% { transform: translateY(0) scale(1); opacity: 1; }
            50% { transform: translateY(-20px) scale(1.1); opacity: 0.7; }
            100% { transform: translateY(0) scale(1); opacity: 1; }
        }

        /* Esconde o texto do botão quando carregando */
        .loading-active .btn-text { display: none; }
        .loading-active .loader-container { display: flex; }

      