/*
 * =============================================================================
 * SST Portal — Grupo Jvitti
 * Arquivo: login.css
 * Versão:  2.0
 * Autor:   Hudson R. Silva
 * Empresa: Grupo Jvitti
 * =============================================================================
 * Estilos específicos da página de Login.
 * =============================================================================
 */

:root {
    --brand-green:      #01413a;
    --brand-green-dark: #012e29;
    --brand-gold:       #a28342;
    --brand-gold-light: #e1b66b;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%;
    font-family: 'DM Sans', 'Noto Sans', sans-serif;
    -webkit-font-smoothing: antialiased;
}

/* ── Background ───────────────────────────────────────────────────────────── */
.login-page {
    min-height: 100vh;
    display: flex;
    background: var(--brand-green-dark);
    position: relative;
    overflow: hidden;
}

/* Textura de pontos */
.login-page::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 24px 24px;
    pointer-events: none;
}

/* Blob dourado decorativo */
.login-page::after {
    content: '';
    position: absolute;
    bottom: -120px;
    right: -120px;
    width: 480px;
    height: 480px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(162, 131, 66, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

/* Blob verde claro decorativo */
.blob-top-left {
    position: absolute;
    top: -80px;
    left: -80px;
    width: 380px;
    height: 380px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(1, 92, 82, 0.30) 0%, transparent 70%);
    pointer-events: none;
}

/* ── Painel esquerdo (branding) ───────────────────────────────────────────── */
.login-brand {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    padding: 48px 56px;
    width: 55%;
    position: relative;
    z-index: 1;
}

@media (min-width: 1024px) {
    .login-brand {
        display: flex;
    }
}

/* Linha dourada vertical decorativa */
.login-brand::after {
    content: '';
    position: absolute;
    top: 15%;
    right: 0;
    bottom: 15%;
    width: 1px;
    background: linear-gradient(to bottom, transparent, rgba(162, 131, 66, 0.30), transparent);
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 14px;
}

.brand-logo-img {
    height: 48px;
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
    opacity: 0.95;
}

.brand-logo-text {
    display: flex;
    flex-direction: column;
}

.brand-logo-name {
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.1;
}

.brand-logo-tagline {
    color: var(--brand-gold-light);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-top: 3px;
}

.brand-hero {
    padding-bottom: 24px;
}

.brand-hero-title {
    font-size: 38px;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.04em;
    line-height: 1.15;
    margin-bottom: 18px;
}

/* Destaque dourado na última palavra */
.brand-hero-title .gold {
    color: var(--brand-gold-light);
}

.brand-hero-desc {
    color: rgba(255, 255, 255, 0.50);
    font-size: 15px;
    line-height: 1.7;
    max-width: 400px;
    margin-bottom: 36px;
}

.brand-features {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.brand-feature {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.brand-feature-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(162, 131, 66, 0.15);
    border: 1px solid rgba(162, 131, 66, 0.20);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-gold-light);
    font-size: 13px;
    flex-shrink: 0;
    margin-top: 1px;
}

.brand-feature-text strong {
    display: block;
    color: rgba(255, 255, 255, 0.85);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 2px;
}

.brand-feature-text span {
    color: rgba(255, 255, 255, 0.38);
    font-size: 12px;
    line-height: 1.5;
}

.brand-footer {
    color: rgba(255, 255, 255, 0.20);
    font-size: 11px;
}

/* ── Painel direito (formulário) ──────────────────────────────────────────── */
.login-form-panel {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 24px;
    position: relative;
    z-index: 1;
}

.login-card {
    width: 100%;
    max-width: 400px;
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 20px;
    padding: 36px 32px;
    box-shadow: 0 32px 64px rgba(0, 0, 0, 0.40);
}

/* Logo mobile */
.login-card-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 28px;
}

@media (min-width: 1024px) {
    .login-card-logo {
        display: none;
    }
}

.login-card-logo-img {
    height: 36px;
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
    opacity: 0.9;
}

.login-card-logo-name {
    color: #fff;
    font-size: 15px;
    font-weight: 700;
}

/* Título do card */
.login-card-title {
    font-size: 22px;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.03em;
    margin-bottom: 4px;
}

.login-card-subtitle {
    color: rgba(255, 255, 255, 0.40);
    font-size: 13px;
    margin-bottom: 28px;
}

/* ── Campos do formulário ─────────────────────────────────────────────────── */
.login-form-group {
    margin-bottom: 16px;
}

.login-label {
    display: block;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: rgba(255, 255, 255, 0.45);
    margin-bottom: 8px;
}

.login-input-wrap {
    position: relative;
}

.login-input-wrap i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.25);
    font-size: 13px;
    pointer-events: none;
}

.login-input {
    width: 100%;
    padding: 12px 14px 12px 40px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    color: #fff;
    font-size: 14px;
    font-family: inherit;
    outline: none;
    transition: all 0.18s ease;
}

.login-input::placeholder {
    color: rgba(255, 255, 255, 0.22);
}

.login-input:focus {
    background: rgba(255, 255, 255, 0.09);
    border-color: var(--brand-gold);
    box-shadow: 0 0 0 3px rgba(162, 131, 66, 0.18);
}

/* ── Mensagem de erro ─────────────────────────────────────────────────────── */
.login-error {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    background: rgba(220, 38, 38, 0.15);
    border: 1px solid rgba(220, 38, 38, 0.30);
    border-radius: 10px;
    margin: 18px 0;
}

.login-error i {
    color: #fca5a5;
    font-size: 14px;
    flex-shrink: 0;
}

.login-error p {
    color: #fca5a5;
    font-size: 13px;
}

/* ── Botão de submit ──────────────────────────────────────────────────────── */
.login-btn {
    width: 100%;
    padding: 13px 16px;
    margin-top: 22px;
    background: linear-gradient(135deg, var(--brand-gold) 0%, var(--brand-gold-light) 100%);
    border: none;
    border-radius: 10px;
    color: var(--brand-green-dark);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.02em;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.18s ease;
    box-shadow: 0 4px 16px rgba(162, 131, 66, 0.35);
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(162, 131, 66, 0.40);
    filter: brightness(1.05);
}

.login-btn:active {
    transform: translateY(0);
}

/* ── Visibilidade da Senha ────────────────────────────────────────────────── */

/* Ajusta o padding direito para o texto digitado não passar por baixo do ícone */
.login-input.password-input {
    padding-right: 44px;
}

.toggle-password {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.45);
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.18s ease;
    z-index: 2;
}

.toggle-password:hover {
    color: var(--brand-gold-light);
}

/* Sobrescreve a regra anterior do `.login-input-wrap i` para que 
   este ícone específico não fique preso à esquerda */
.login-input-wrap button.toggle-password i {
    position: static;
    transform: none;
    pointer-events: auto;
    left: auto;
    color: inherit;
}