/* Container de login */
.login-container {
    width: 300px;
    margin: 0 auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    text-align: center;
    font-family: Arial, sans-serif;
}

/* Título e descrição */
.login-container h2 {
    font-size: 24px;
    margin-bottom: 10px;
}

.login-container p {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
}

/* Estilo dos campos de entrada */
.form-group {
    margin-bottom: 15px;
    text-align: left;
}

.form-group input[type="email"],
.form-group input[type="password"] {
    width: 100%;
    padding: 10px;
    font-size: 14px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
    outline: none;
}

.form-group input[type="email"]:focus,
.form-group input[type="password"]:focus {
    border-color: #4a90e2;
}

/* Checkbox e rótulo de "Remember" */
.remember-me {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #666;
}

.remember-me input[type="checkbox"] {
    margin-right: 5px;
}

/* Links de recuperação e criação de conta */
.form-links {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    margin-top: 10px;
    margin-bottom: 20px;
}

.form-links a {
    color: #4a90e2;
    text-decoration: none;
}

.form-links a:hover {
    text-decoration: underline;
}

/* Botão de login */
.sign-in-button {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    color: #fff;
    background-color: #4a90e2;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.sign-in-button:hover {
    background-color: #357abd;
}


/* Container da página Esqueci Minha Senha */
.forgot-password-container {
    width: 300px;
    margin: 0 auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    text-align: center;
    font-family: Arial, sans-serif;
}

/* Título e descrição */
.forgot-password-container h2 {
    font-size: 24px;
    margin-bottom: 10px;
}

.forgot-password-container p {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
}

/* Estilo dos campos de entrada */
.form-group {
    margin-bottom: 15px;
    text-align: left;
}

.form-group input[type="email"] {
    width: 100%;
    padding: 10px;
    font-size: 14px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
    outline: none;
}

.form-group input[type="email"]:focus {
    border-color: #4a90e2;
}


/* Container da página Esqueci Minha Senha */
.forgot-password-container {
    width: 300px;
    margin: 0 auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    text-align: center;
    font-family: Arial, sans-serif;
}

/* Título e descrição */
.forgot-password-container h2 {
    font-size: 24px;
    margin-bottom: 10px;
}

.forgot-password-container p {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
}

/* Estilo dos campos de entrada */
.form-group {
    margin-bottom: 15px;
    text-align: left;
}

/* Estilo do campo de texto (formulários gerais; .site-login-section sobrescreve via .site-login-field) */
.form-group input[type="text"] {
    width: 100%;
    padding: 10px;
    font-size: 14px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
    outline: none;
}

.form-group input[type="email"]:focus {
    border-color: #4a90e2;
}

/* Estilo para o rótulo dos botões de rádio */
.radio-label {
    font-size: 14px;
    color: #d32f2f; /* Vermelho para o título */
    font-weight: bold;
    margin-bottom: 5px;
    display: block;
}

/* Estilo dos botões de rádio */
.radio-options label {
    display: block;
    font-size: 14px;
    color: #333;
    margin-bottom: 5px;
    cursor: pointer;
}

.radio-options input[type="radio"] {
    margin-right: 8px;
}

/* Botão de redefinição de senha */
.reset-password-button {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    color: #fff;
    background-color: #4a90e2;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.reset-password-button:hover {
    background-color: #357abd;
}

.reset-password-button.disabled {
    background-color: #cccccc;
    color: #666666;
    cursor: not-allowed;
}

/* Link de voltar para o login */
.back-to-login {
    margin-top: 15px;
    font-size: 14px;
}

.back-to-login a {
    color: #4a90e2;
    text-decoration: none;
}

.back-to-login a:hover {
    text-decoration: underline;
}

.site-login-section {
    --sl-ink: #0c111d;
    --sl-muted: #5c6578;
    --sl-line: #e8ebf0;
    --sl-surface: #ffffff;
    --sl-accent: #1a1f2e;
    --sl-accent-hover: #2d3548;
    --sl-glow: rgba(99, 102, 241, 0.12);

    font-family: "DM Sans", system-ui, -apple-system, sans-serif;
    background:
            radial-gradient(1200px 600px at 85% -10%, rgba(99, 102, 241, 0.06), transparent 55%),
            radial-gradient(800px 400px at 0% 100%, rgba(15, 23, 42, 0.04), transparent 50%),
            #f4f6f9;
    padding-top: 56px !important;
    padding-bottom: 72px !important;
}

.site-login-shell {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    gap: 0;
    border-radius: 24px;
    overflow: hidden;
    box-shadow:
            0 0 0 1px rgba(15, 23, 42, 0.06),
            0 2px 4px rgba(15, 23, 42, 0.02),
            0 32px 64px -16px rgba(15, 23, 42, 0.14);
    background: var(--sl-surface);
}

.site-login-brand {
    position: relative;
    padding: 48px 40px 40px;
    background:
            linear-gradient(145deg, #141824 0%, #1c2233 48%, #151a28 100%);
    color: #fff;
    display: flex;
    flex-direction: column;
    min-height: 520px;
    box-sizing: border-box;
}

.site-login-brand::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.9;
    pointer-events: none;
}

.site-login-brand::after {
    content: "";
    position: absolute;
    top: -40%;
    right: -30%;
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, rgba(129, 140, 248, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.site-login-brand-inner {
    position: relative;
    z-index: 1;
    flex: 1;
}

.site-login-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 36px;
    text-decoration: none;
    color: inherit;
}

.site-login-logo img {
    height: 36px;
    width: auto;
    display: block;
    filter: brightness(0) invert(1);
    opacity: 0.95;
}

.site-login-brand h2 {
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.25;
    margin: 0 0 12px 0;
    color: #fff;
}

.site-login-brand > .site-login-brand-inner > p.site-login-brand-lead {
    font-size: 15px;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.72);
    margin: 0 0 36px 0;
    max-width: 320px;
}

.site-login-features {
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-login-features li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    font-size: 14px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.88);
    margin-bottom: 20px;
}

.site-login-features li:last-child {
    margin-bottom: 0;
}

.site-login-features svg {
    flex-shrink: 0;
    margin-top: 2px;
    opacity: 0.85;
}

.site-login-brand-foot {
    position: relative;
    z-index: 1;
    margin: 32px 0 0 0;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.45);
    letter-spacing: 0.02em;
}

.site-login-main {
    padding: 40px 48px 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: var(--sl-surface);
    box-sizing: border-box;
}

.site-login-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 500;
    color: var(--sl-muted);
    text-decoration: none;
    margin-bottom: 28px;
    transition: color 0.2s ease;
}

.site-login-back:hover {
    color: var(--sl-ink);
}

.site-login-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--sl-muted);
    margin-bottom: 12px;
}

.site-login-badge span {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.25);
}

.site-login-title {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--sl-ink);
    margin: 0 0 8px 0;
    line-height: 1.2;
}

.site-login-lead {
    font-size: 15px;
    line-height: 1.55;
    color: var(--sl-muted);
    margin: 0 0 28px 0;
}

.site-login-panel .form-group {
    margin-bottom: 20px;
}

.site-login-panel .form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--sl-ink);
}

.site-login-field {
    display: flex;
    align-items: center;
    gap: 0;
    min-height: 52px;
    border: 1px solid var(--sl-line);
    border-radius: 14px;
    background: #fafbfd;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.site-login-field:focus-within {
    border-color: #c7cad4;
    background: #fff;
    box-shadow: 0 0 0 4px var(--sl-glow);
}

.site-login-field.is-invalid {
    border-color: #f87171;
    box-shadow: 0 0 0 4px rgba(248, 113, 113, 0.12);
    background: #fff;
}

.site-login-field-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    flex-shrink: 0;
    color: #9ca3af;
}

.site-login-field:focus-within .site-login-field-icon {
    color: #6b7280;
}

/* Especificidade alta: tema (style.css) e .form-group globais não podem “apagar” o design */
.site-login-section .site-login-panel .form-group .site-login-field > input {
    flex: 1;
    min-width: 0;
    width: auto;
    max-width: none;
    padding: 14px 16px 14px 0;
    font-size: 15px;
    font-family: inherit;
    border: none;
    border-radius: 0 14px 14px 0;
    background: transparent;
    color: var(--sl-ink);
    outline: none;
    box-sizing: border-box;
    box-shadow: none;
    -webkit-appearance: none;
    appearance: none;
}

.site-login-section .site-login-panel .form-group .site-login-field > input::placeholder {
    color: #9ca3af;
}

.site-login-section .site-login-panel .form-group .site-login-field > input:focus {
    outline: none;
    box-shadow: none;
}

.site-login-panel .form-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 16px;
    margin: 8px 0 24px 0;
}

.site-login-panel .form-links a {
    color: var(--sl-ink);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.site-login-panel .form-links a:hover {
    border-bottom-color: var(--sl-line);
    color: var(--sl-accent-hover);
}

.site-login-panel .form-links .site-login-muted {
    font-size: 14px;
    color: var(--sl-muted);
}

.site-login-panel .form-links .site-login-muted a {
    font-weight: 600;
}

.site-login-btn {
    width: 100%;
    padding: 15px 22px;
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    color: #fff;
    background: linear-gradient(180deg, var(--sl-accent-hover) 0%, var(--sl-accent) 100%);
    border: none;
    border-radius: 14px;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06), 0 8px 24px -4px rgba(26, 31, 46, 0.35);
    transition: transform 0.15s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.site-login-btn:hover {
    filter: brightness(1.06);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08), 0 12px 32px -4px rgba(26, 31, 46, 0.4);
}

.site-login-btn:active {
    transform: translateY(1px);
}

.site-login-btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
}

.site-login-trust {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
    font-size: 12px;
    color: var(--sl-muted);
}

.site-login-trust svg {
    flex-shrink: 0;
    opacity: 0.7;
}

.login-alert {
    padding: 14px 16px;
    margin-bottom: 20px;
    border-radius: 14px;
    font-size: 14px;
    line-height: 1.45;
    display: none;
}

.login-alert.alert-success {
    display: block;
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.login-alert.alert-danger {
    display: block;
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* Página de confirmação OTP (confirm.php): painel alinhado ao topo e rodapé “trust” no rodapé do cartão */
.confirm-otp-page .site-login-shell > .site-login-main {
    align-self: stretch;
    min-height: 520px;
    justify-content: flex-start;
}

.confirm-otp-page .site-login-main .site-login-trust {
    margin-top: auto;
    padding-top: 28px;
}

@media (max-width: 900px) {
    .confirm-otp-page .site-login-shell > .site-login-main {
        min-height: 0;
    }

    .site-login-shell {
        grid-template-columns: 1fr;
        border-radius: 20px;
    }

    .site-login-brand {
        min-height: auto;
        padding: 32px 28px 28px;
    }

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

    .site-login-features {
        display: none;
    }

    .site-login-brand > .site-login-brand-inner > p.site-login-brand-lead {
        margin-bottom: 0;
    }

    .site-login-brand-foot {
        margin-top: 20px;
    }

    .site-login-main {
        padding: 32px 28px 40px;
    }
}

@media (max-width: 480px) {
    .site-login-section {
        padding-top: 32px !important;
        padding-bottom: 48px !important;
    }

    .site-login-shell {
        padding: 0;
        border-radius: 0;
        box-shadow: none;
        overflow: visible;
        background: transparent;
    }

    .site-login-brand {
        border-radius: 16px;
        margin-bottom: 16px;
    }

    .site-login-main {
        padding: 0;
    }

    .site-login-panel {
        border-radius: 16px;
    }
}