﻿* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #0f172a, #1e293b);
    color: white;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.container {
    width: 100%;
    max-width: 500px;
}

.card {
    background: #1e293b;
    padding: 30px;
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

.title-icon {
    text-align: center;
    margin-bottom: 10px;
}

    .title-icon i {
        font-size: 42px;
        color: #38bdf8;
    }

h2 {
    text-align: center;
    margin-bottom: 25px;
    font-weight: 600;
}

.subtitle {
    text-align: center;
    color: #94a3b8;
    font-size: 14px;
    margin-bottom: 25px;
    line-height: 1.6;
}

label {
    font-size: 13px;
    opacity: 0.85;
    display: block;
    margin-bottom: 5px;
}

input {
    width: 100%;
    padding: 12px 14px;
    margin-bottom: 18px;
    border-radius: 10px;
    border: none;
    outline: none;
    font-size: 14px;
    background: #f8fafc;
    color: #0f172a;
}

    input:focus {
        outline: 2px solid #38bdf8;
    }

button {
    width: 100%;
    background: #38bdf8;
    border: none;
    padding: 15px;
    border-radius: 12px;
    font-weight: bold;
    font-size: 15px;
    cursor: pointer;
    transition: 0.3s;
    color: white;
    margin-top: 10px;
}

    button:hover {
        background: #0ea5e9;
        transform: translateY(-1px);
    }

.error {
    color: #ef4444;
    font-size: 13px;
    margin-bottom: 10px;
}

.auth-link {
    margin-top: 20px;
    text-align: center;
    font-size: 14px;
    opacity: 0.9;
}

    .auth-link a {
        color: #38bdf8;
        text-decoration: none;
        font-weight: 600;
    }

        .auth-link a:hover {
            text-decoration: underline;
        }

.remember {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

    .remember input {
        width: auto;
        margin: 0;
    }

    .remember label {
        margin: 0;
        font-size: 14px;
    }

/* ==========================
   BOTÕES LADO A LADO
   ========================== */

.actions {
    display: flex;
    gap: 12px;
    margin-top: 15px;
}

    .actions .btn-primary,
    .actions .btn-secondary {
        flex: 1;
        height: 52px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        text-decoration: none;
        border-radius: 12px;
        font-weight: 600;
        font-size: 15px;
        transition: .3s;
    }

    /* sobrescreve o width:100% do button */
    .actions .btn-primary {
        width: auto;
        margin-top: 0;
        padding: 0;
        background: #38bdf8;
        color: white;
        border: none;
        cursor: pointer;
    }

        .actions .btn-primary:hover {
            background: #0ea5e9;
            transform: translateY(-1px);
        }

    .actions .btn-secondary {
        background: #475569;
        color: white;
    }

        .actions .btn-secondary:hover {
            background: #334155;
            transform: translateY(-1px);
        }

@media (max-width: 600px) {

    .card {
        padding: 22px;
    }

    .actions {
        flex-direction: column;
    }

        .actions .btn-primary,
        .actions .btn-secondary {
            width: 100%;
        }
}

/* ==========================
   VISUALIZAR SENHA
   ========================== */

.password-wrapper {
    position: relative;
    width: 100%;
}

    .password-wrapper input {
        width: 100%;
        padding-right: 45px;
    }

.toggle-password {
    position: absolute;
    right: 14px;
    top: 40%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #64748b;
    font-size: 16px;
    z-index: 10;
}

    .toggle-password:hover {
        color: #38bdf8;
    }

/* ==========================
   REGRAS DE SENHA
   ========================== */

.password-info {
    margin-top: -8px;
    margin-bottom: 18px;
    font-size: 12px;
    line-height: 1.5;
    color: #94a3b8;
}

    .password-info i {
        color: #38bdf8;
        margin-right: 4px;
    }

.forgot-password {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
}

    .forgot-password:hover {
        color: #38bdf8;
        text-decoration: underline;
    }


.password-hint {
    margin-top: 14px;
    margin-bottom: 20px;
    padding: 12px 14px;
    border-radius: 10px;
    background: rgba(56, 189, 248, 0.08);
    border: 1px solid rgba(56, 189, 248, 0.15);
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.85rem;
    color: #cbd5e1;
    line-height: 1.5;
}

    .password-hint i {
        color: #38bdf8;
        margin-top: 2px;
        flex-shrink: 0;
    }

    .password-hint strong {
        color: #ffffff;
        font-weight: 600;
    }

/* ==========================
   VOLTAR A PAGINA INICIAL
   ========================== */
.back-home {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 24px;
}

.back-home a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    border-radius: 999px;
    background: rgba(56, 189, 248, 0.08);
    border: 1px solid rgba(56, 189, 248, 0.18);
    color: #cbd5e1;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    transition: all .25s ease;
}

    .back-home a i {
        color: #38bdf8;
        font-size: 0.95rem;
    }

    .back-home a:hover {
        color: #ffffff;
        border-color: rgba(56, 189, 248, 0.45);
        background: rgba(56, 189, 248, 0.15);
        transform: translateY(-2px);
        box-shadow: 0 0 15px rgba(56, 189, 248, 0.15), 0 0 30px rgba(56, 189, 248, 0.08);
    }

        .back-home a:hover i {
            color: #7dd3fc;
        }


/* ==========================
   MENSAGENS DE ERRO DOS CAMPOS
   ========================== */
.validation-summary,

.error {
    display: block;
    margin-top: 6px;
    padding: 0;
    color: transparent;
    font-size: 13px;
    font-weight: 600;
    border: none;
    background: transparent;
}

    /* Somente quando existir uma mensagem de erro */
    .error.field-validation-error {
        color: #f87171;
        padding: 6px 10px;
        border-radius: 6px;
        background: rgba(239, 68, 68, 0.08);
        border: 1px solid rgba(239, 68, 68, 0.20);
    }

/* ==========================
   RESUMO DE ERROS DO LOGIN
   ========================== */

.validation-summary {
    display: none;
}

    /* Exibe somente quando existir erro */
    .validation-summary.validation-summary-errors {
        display: block;
        color: #f87171;
        font-size: 14px;
        font-weight: 600;
        text-align: center;
        margin-bottom: 18px;
        padding: 10px 12px;
        border-radius: 8px;
        background: rgba(239, 68, 68, 0.08);
        border: 1px solid rgba(239, 68, 68, 0.20);
    }

    .validation-summary ul {
        margin: 0;
        padding: 0;
        list-style: none;
    }

    .validation-summary li {
        color: #f87171;
    }