/* =========================================
   BASE
   ========================================= */

html {
    font-size: 16px;
}

body {
    margin: 0;
    background: #f8fafc;
    color: #0f172a;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}


/* =========================================
   LOGIN
   ========================================= */

.auth-page {
    min-height: calc(100vh - 120px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
}


.auth-card {
    width: 100%;
    max-width: 430px;
    background: #ffffff;
    border-radius: 20px;
    padding: 32px 24px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}


/* =========================================
   CABEÇALHO
   ========================================= */

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}


.auth-logo {
    width: 64px;
    height: 64px;
    margin: 0 auto 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    background: #2563eb;
    font-size: 30px;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.25);
}


.auth-header h1 {
    margin: 0;
    font-size: 25px;
    font-weight: 700;
    letter-spacing: -0.5px;
}


.auth-header p {
    margin: 8px 0 0;
    color: #64748b;
    font-size: 15px;
}


/* =========================================
   FORMULÁRIO
   ========================================= */

.auth-form {
    width: 100%;
}


.form-group {
    margin-bottom: 20px;
}


    .form-group label {
        display: block;
        margin-bottom: 8px;
        font-size: 14px;
        font-weight: 600;
        color: #334155;
    }


.input-wrapper {
    position: relative;
}


.input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    opacity: 0.65;
    pointer-events: none;
}


.input-wrapper input {
    width: 100%;
    height: 52px;
    padding: 0 16px 0 46px;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    background: #ffffff;
    color: #0f172a;
    font-size: 16px;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
}


    .input-wrapper input::placeholder {
        color: #94a3b8;
    }


    .input-wrapper input:focus {
        border-color: #2563eb;
        box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
    }


/* =========================================
   LEMBRAR-ME
   ========================================= */

.remember-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 4px 0 24px;
    font-size: 14px;
}


.remember-label {
    display: flex !important;
    align-items: center;
    gap: 8px;
    margin: 0 !important;
    font-weight: 400 !important;
    color: #475569 !important;
    cursor: pointer;
}


    .remember-label input {
        width: 17px;
        height: 17px;
        accent-color: #2563eb;
        cursor: pointer;
    }


.remember-row a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
}


    .remember-row a:hover {
        text-decoration: underline;
    }


/* =========================================
   BOTÃO
   ========================================= */

.auth-button {
    width: 100%;
    height: 52px;
    border: none;
    border-radius: 12px;
    background: #2563eb;
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s, box-shadow 0.2s;
}


    .auth-button:hover {
        background: #1d4ed8;
        box-shadow: 0 8px 18px rgba(37, 99, 235, 0.22);
    }


    .auth-button:active {
        transform: scale(0.98);
    }


/* =========================================
   RODAPÉ DO LOGIN
   ========================================= */

.auth-footer {
    margin-top: 26px;
    padding-top: 22px;
    border-top: 1px solid #e2e8f0;
    text-align: center;
    font-size: 14px;
    color: #64748b;
}


    .auth-footer a {
        display: block;
        margin-top: 7px;
        color: #2563eb;
        text-decoration: none;
        font-weight: 600;
    }


        .auth-footer a:hover {
            text-decoration: underline;
        }


/* =========================================
   VALIDAÇÕES
   ========================================= */

.validation-summary {
    margin-bottom: 20px;
    padding: 12px 14px;
    border-radius: 10px;
    background: #fef2f2;
    color: #b91c1c;
    font-size: 14px;
}


    .validation-summary:empty {
        display: none;
    }


.field-validation {
    display: block;
    margin-top: 6px;
    color: #dc2626;
    font-size: 13px;
}


/* =========================================
   MOBILE
   ========================================= */

@media (max-width: 480px) {

    .auth-page {
        min-height: calc(100vh - 90px);
        padding: 16px 12px;
        align-items: flex-start;
    }


    .auth-card {
        margin-top: 20px;
        padding: 28px 20px;
        border-radius: 18px;
        box-shadow: 0 6px 20px rgba(15, 23, 42, 0.06);
    }


    .auth-header {
        margin-bottom: 26px;
    }


        .auth-header h1 {
            font-size: 23px;
        }


    .auth-logo {
        width: 58px;
        height: 58px;
        font-size: 27px;
    }


    .input-wrapper input {
        height: 54px;
        font-size: 16px;
    }


    .auth-button {
        height: 54px;
        font-size: 16px;
    }


    .remember-row {
        align-items: flex-start;
    }
    .register-card {
        max-width: 460px;
    }

        .register-card .auth-header {
            margin-bottom: 26px;
        }
}
