/* ==========================================
   ÁREA DE LOGIN, REGISTO E RECUPERAÇÃO
   ========================================== */

.auth-wrapper {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.auth-card {
    width: 100%;
    max-width: 440px;
    background: #121216;
    border: 1px solid #22222a;
    border-radius: 12px;
    padding: 35px 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    color: #ffffff;
}

.auth-card h2 {
    font-size: 1.6rem;
    color: #ffffff;
    text-align: center;
    margin-bottom: 12px;
    font-weight: 600;
}

.auth-subtitle {
    text-align: center;
    color: #aaaaaa;
    font-size: 0.88rem;
    margin-bottom: 22px;
    line-height: 1.4;
}

.auth-form-block {
    display: none;
}

.auth-form-block.active {
    display: block;
}

/* Form Rows */
.form-row {
    display: flex;
    gap: 12px;
}

.form-row .form-group {
    flex: 1;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.85rem;
    color: #aaaaaa;
}

.input-password-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.form-control {
    width: 100%;
    padding: 12px 14px;
    background: #1a1a20;
    border: 1px solid #2d2d35;
    border-radius: 6px;
    color: #ffffff;
    font-size: 0.95rem;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: #e63946;
}

.toggle-password {
    position: absolute;
    right: 12px;
    color: #777777;
    cursor: pointer;
    font-size: 0.95rem;
    padding: 5px;
    transition: color 0.3s ease;
}

.toggle-password:hover {
    color: #e63946;
}

.field-error-msg {
    display: block;
    color: #e74c3c;
    font-size: 0.8rem;
    margin-top: 5px;
}

.forgot-pass-link {
    display: block;
    text-align: right;
    font-size: 0.8rem;
    color: #e63946;
    text-decoration: none;
    margin-top: 6px;
}

.forgot-pass-link:hover {
    text-decoration: underline;
}

.btn-auth {
    width: 100%;
    padding: 12px;
    background: #e63946;
    border: none;
    color: #ffffff;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 10px;
    transition: background 0.3s ease;
}

.btn-auth:hover {
    background: #c12e39;
}

.btn-secondary-auth {
    background: #22222a;
    text-align: center;
    display: block;
    text-decoration: none;
}

.btn-secondary-auth:hover {
    background: #333340;
}

.auth-switch {
    text-align: center;
    margin-top: 20px;
    font-size: 0.88rem;
    color: #888888;
}

.auth-switch a {
    color: #e63946;
    text-decoration: none;
    font-weight: 600;
}

.auth-switch a:hover {
    text-decoration: underline;
}

/* Alertas */
.alert-box {
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 0.85rem;
    margin-bottom: 20px;
    text-align: center;
}

.alert-err {
    background: rgba(231, 76, 60, 0.15);
    border: 1px solid rgba(231, 76, 60, 0.3);
    color: #e74c3c;
}

.alert-suc {
    background: rgba(46, 204, 113, 0.15);
    border: 1px solid rgba(46, 204, 113, 0.3);
    color: #2ecc71;
}

/* Bloco de Mensagem de Sucesso de Envio / Reset */
.reset-success-block {
    text-align: center;
    padding: 10px 0;
}

.reset-icon {
    font-size: 3rem;
    color: #e63946;
    margin-bottom: 15px;
}

.reset-icon.icon-success {
    color: #2ecc71;
}

.reset-success-block p {
    color: #cccccc;
    font-size: 0.92rem;
    line-height: 1.5;
    margin-bottom: 10px;
}

.reset-subtext {
    font-size: 0.8rem !important;
    color: #777777 !important;
    margin-bottom: 25px !important;
}

/* ESCONDER O BLOCO DO FOOTER NESTAS PÁGINAS */
.footer-cta {
    display: none !important;
}

/* ==========================================
   RESPONSIVIDADE (MOBILE / TELEMÓVEL)
   ========================================== */
@media (max-width: 576px) {
    .auth-wrapper {
        padding: 20px 15px;
        min-height: calc(100vh - 120px);
    }

    .auth-card {
        padding: 25px 18px;
        border-radius: 10px;
    }

    .auth-card h2 {
        font-size: 1.35rem;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .form-control {
        padding: 10px 12px;
        font-size: 0.9rem;
    }

    .btn-auth {
        padding: 11px;
        font-size: 0.95rem;
    }
}



.form-control.input-error {
    border-color: #e74c3c !important;
}