/* ============================================
   TELA DE LOGIN / RECUPERAÇÃO - BANHOSOFT
   Layout dividido: painel de marca + painel de formulário.
   Compartilhado por index.php, recuperaconta.php e recuperar_conta.php
   (mesmas classes .login-* usadas pelo JS inline de cada página).
   ============================================ */

:root {
    --primary-color: #006687;
    --primary-dark: #00394d;
    --primary-light: #00a8d4;
    --text-primary: #1a2b33;
    --text-secondary: #64748a;
    --text-light: #94a3b8;
    --border-color: #e2e8f0;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #3b82f6;
    --gradient-brand: linear-gradient(160deg, #007fa3 0%, #006687 45%, #00394d 100%);
    --gradient-button: linear-gradient(135deg, #006687 0%, #00a8d4 100%);
}

* {
    box-sizing: border-box;
}

/* Container: painel de marca + painel de formulário lado a lado */
.login-container {
    min-height: 100vh;
    width: 100%;
    display: flex;
    background: #f5f7fa;
}

/* ---------- Painel de marca ---------- */
.login-brand-panel {
    position: relative;
    width: 42%;
    min-width: 380px;
    max-width: 560px;
    background: var(--gradient-brand);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 56px 48px;
    overflow: hidden;
}

.login-brand-shapes {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.login-brand-shapes::before,
.login-brand-shapes::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
}

.login-brand-shapes::before {
    width: 420px;
    height: 420px;
    top: -140px;
    right: -160px;
}

.login-brand-shapes::after {
    width: 320px;
    height: 320px;
    bottom: -120px;
    left: -100px;
    background: rgba(255, 255, 255, 0.06);
}

.login-brand-content {
    position: relative;
    z-index: 1;
}

.login-brand-logo-chip {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.96);
    border-radius: 12px;
    padding: 10px 18px 10px 10px;
    margin-bottom: 40px;
    box-shadow: 0 8px 20px rgba(0, 20, 30, 0.18);
}

.login-brand-logo-chip img {
    width: 56px;
    height: 56px;
    border-radius: 15px;
}

.login-brand-logo-chip .brand-wordmark {
    font-size: 31px;
    letter-spacing: -1.5px;
}

.login-brand-title {
    /* estilos.css define "h2 { float: left; padding: 0 30px; }" globalmente (para outro
       layout); sobrescrevendo aqui pois esta classe é mais específica que o seletor h2 puro. */
    float: none;
    padding: 0;
    font-size: 32px;
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
    margin: 0 0 16px 0;
    letter-spacing: -0.3px;
}

.login-brand-subtitle {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.6;
    max-width: 380px;
    margin: 0;
}

.login-brand-app {
    position: relative;
    z-index: 1;
    margin-top: 48px;
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 14px;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.2s ease;
}

.login-brand-app:hover {
    background: rgba(255, 255, 255, 0.16);
    transform: translateY(-2px);
    text-decoration: none;
}

.login-brand-app i {
    font-size: 20px;
    color: #fff;
}

.login-app-badge-text {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.login-app-badge-title {
    font-size: 13px;
    font-weight: 700;
    color: #fff;
}

.login-app-badge-subtitle {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.75);
}

/* ---------- Painel de formulário ---------- */
.login-form-panel {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
}

.login-form-panel-inner {
    width: 100%;
    max-width: 400px;
}

.login-header {
    margin-bottom: 32px;
}

/* A marca já aparece no painel esquerdo em telas largas; no formulário só repetimos a logo
   quando o painel de marca some (mobile, ver media query abaixo). */
.login-header .login-logo {
    display: none;
}

.login-title {
    font-size: 26px;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0 0 8px 0;
    letter-spacing: -0.3px;
}

.login-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.5;
}

/* Alertas */
.login-alert {
    padding: 13px 16px;
    border-radius: 10px;
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13.5px;
    line-height: 1.55;
    border-left: 3px solid transparent;
}

.login-alert i {
    font-size: 16px;
    flex-shrink: 0;
    margin-top: 2px;
}

.login-alert span {
    flex: 1;
}

.login-alert-info {
    background: #eef5ff;
    color: #1e4f91;
    border-left-color: var(--info);
}

.login-alert-success {
    background: #eafbf3;
    color: #0f6b45;
    border-left-color: var(--success);
}

.login-alert-warning {
    background: #fff7e8;
    color: #8a5a06;
    border-left-color: var(--warning);
}

.login-alert-danger {
    background: #fdedec;
    color: #9c2a24;
    border-left-color: var(--danger);
}

.login-messages {
    position: relative;
}

.login-messages:empty {
    margin: 0;
}

/* Formulário */
.login-form {
    width: 100%;
}

.login-form-group {
    margin-bottom: 18px;
}

.login-label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 12.5px;
}

.login-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.login-input-icon {
    position: absolute;
    left: 14px;
    color: var(--text-light);
    font-size: 14px;
    pointer-events: none;
    transition: color 0.2s ease;
}

.login-input-wrapper:focus-within .login-input-icon {
    color: var(--primary-color);
}

.login-input {
    width: 100%;
    padding: 12px 14px 12px 40px;
    border: 1.5px solid var(--border-color);
    border-radius: 10px;
    font-size: 14px;
    color: var(--text-primary);
    background: #fff;
    font-family: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.login-input:-webkit-autofill,
.login-input:-webkit-autofill:hover,
.login-input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 30px #fff inset !important;
    -webkit-text-fill-color: var(--text-primary) !important;
    border-color: rgba(0, 102, 135, 0.35) !important;
}

.login-input:hover {
    border-color: #c7d2e0;
}

.login-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 102, 135, 0.12);
}

.login-input-focus-line {
    display: none;
}

.login-input::placeholder {
    color: var(--text-light);
}

/* Botão */
.login-button {
    width: 100%;
    padding: 13px 24px;
    background: var(--gradient-button);
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    cursor: pointer;
    transition: box-shadow 0.2s ease, transform 0.15s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 8px;
    box-shadow: 0 4px 14px rgba(0, 102, 135, 0.35);
    font-family: inherit;
}

.login-button:hover {
    box-shadow: 0 6px 18px rgba(0, 102, 135, 0.45);
    transform: translateY(-1px);
}

.login-button:active {
    transform: translateY(0);
}

.login-button:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 102, 135, 0.3), 0 4px 14px rgba(0, 102, 135, 0.35);
}

.login-button i {
    font-size: 16px;
}

/* Footer */
.login-footer {
    margin-top: 28px;
    padding-top: 22px;
    border-top: 1px solid var(--border-color);
}

.login-link-forgot {
    display: block;
    text-align: center;
    color: var(--primary-color);
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 600;
    margin-bottom: 18px;
    padding: 4px;
}

.login-link-forgot:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.login-divider {
    text-align: center;
    margin: 18px 0;
    position: relative;
}

.login-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--border-color);
}

.login-divider span {
    position: relative;
    background: #f5f7fa;
    padding: 0 14px;
    color: var(--text-light);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.login-footer-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
}

.login-footer-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 12.5px;
    font-weight: 600;
    padding: 4px 6px;
}

.login-footer-link:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.login-footer-separator {
    color: var(--text-light);
    font-size: 12px;
}

/* Manutenção */
.login-maintenance {
    text-align: center;
    padding: 20px 0;
    color: var(--text-secondary);
}

.login-maintenance i {
    font-size: 48px;
    color: var(--warning);
    margin-bottom: 20px;
}

.login-maintenance p {
    font-size: 15px;
    margin-bottom: 10px;
    line-height: 1.6;
}

.login-maintenance-team {
    font-weight: 700;
    color: var(--primary-color);
    margin-top: 18px;
}

/* ---------- Responsivo ---------- */
@media (max-width: 900px) {
    .login-container {
        flex-direction: column;
    }

    .login-brand-panel {
        width: 100%;
        min-width: 0;
        max-width: none;
        padding: 32px 24px;
        align-items: center;
        text-align: center;
    }

    .login-brand-shapes::before {
        width: 260px;
        height: 260px;
        top: -100px;
        right: -80px;
    }

    .login-brand-shapes::after {
        display: none;
    }

    .login-brand-logo-chip {
        margin-bottom: 20px;
    }

    .login-brand-title {
        font-size: 22px;
    }

    .login-brand-subtitle {
        display: none;
    }

    .login-brand-app {
        display: none;
    }

    .login-form-panel {
        padding: 32px 20px 40px;
    }

    /* Sem painel de marca visível o suficiente, repetimos a logo pequena no cabeçalho do form */
    .login-header {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .login-brand-panel {
        padding: 28px 20px;
    }

    .login-brand-title {
        font-size: 20px;
    }

    .login-form-panel {
        padding: 28px 16px 32px;
    }
}

/* Compatibilidade (mantido de versões anteriores) */
.telaLoginIndex-corpo,
.telaLoginIndex-noticia,
.telaLoginIndex-login,
.telaLoginConteudo {
    display: none;
}

.esconder-mobile,
.esconder-pc,
.destacar-mobile {
    display: none;
}

.login-links,
.login-link-item,
.login-link,
.login-contact {
    display: none;
}
