/* ============================================
   QUALIFICA SST — LOGIN SPLIT-SCREEN
   Paleta: Verde corporativo
   ============================================ */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

body.login-page {
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    overflow: hidden;
}

/* ── Layout Split ────────────────────────── */
.login-split {
    display: flex;
    min-height: 100vh;
}

/* ── Painel Esquerdo ─────────────────────── */
.left-panel {
    flex: 1;
    background: linear-gradient(160deg, #064D32 0%, #0F8A5A 40%, #4FBF8F 100%);
    display: flex;
    align-items: center;
    padding: 60px;
    position: relative;
    overflow: hidden;
}

/* Sutil pattern decorativo */
.left-panel::before {
    content: '';
    position: absolute;
    top: -120px;
    right: -120px;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: rgba(255,255,255,0.04);
}

.left-panel::after {
    content: '';
    position: absolute;
    bottom: -80px;
    left: -80px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(255,255,255,0.03);
}

.left-content {
    position: relative;
    z-index: 1;
    max-width: 480px;
}

/* ── Brand / Logo ────────────────────────── */
.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 48px;
}

.brand-logo {
    width: 180px;
    height: 180px;
    background: rgba(255,255,255,0.35);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
}

.brand-logo img {
    width: 150px;
    height: 150px;
    object-fit: contain;
    background: #fff;
    border-radius: 16px;
    padding: 10px;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.brand-name {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 1.35rem;
    color: #fff;
    letter-spacing: 1px;
}

.brand-sub {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.7);
    letter-spacing: 2px;
}

/* ── Título ───────────────────────────────── */
.panel-title {
    font-family: 'Inter', sans-serif;
    font-size: 1.85rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
    margin-bottom: 40px;
}

/* ── Feature Cards ────────────────────────── */
.feature-cards {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.feature-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 20px;
    transition: background 0.3s, transform 0.3s;
}

.feature-card:hover {
    background: rgba(255,255,255,0.14);
    transform: translateX(6px);
}

.feature-icon {
    width: 46px;
    height: 46px;
    min-width: 46px;
    background: rgba(255,255,255,0.12);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    color: #A8FFD2;
}

.feature-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.feature-info strong {
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
}

.feature-info span {
    color: rgba(255,255,255,0.6);
    font-size: 0.82rem;
}

/* ── Painel Direito ──────────────────────── */
.right-panel {
    flex: 1;
    background: #F2F2F2;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

/* ── Card de Login ────────────────────────── */
.login-card {
    background: #fff;
    border-radius: 18px;
    padding: 44px 40px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.08);
}

.login-title {
    font-family: 'Inter', sans-serif;
    font-size: 1.45rem;
    font-weight: 700;
    color: #1A1A1A;
    margin-bottom: 6px;
}

.login-subtitle {
    font-size: 0.88rem;
    color: #6E6E6E;
    margin-bottom: 32px;
}

/* ── Alerta ───────────────────────────────── */
.login-alert {
    padding: 0.75rem 1rem;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 1.4rem;
}
.login-alert.error {
    background: rgba(239,68,68,0.08);
    color: #b91c1c;
    border-left: 3px solid #ef4444;
}
.login-alert.success {
    background: rgba(34,197,94,0.08);
    color: #15803d;
    border-left: 3px solid #22c55e;
}

/* ── Formulário ───────────────────────────── */
.login-form .form-group {
    margin-bottom: 1.2rem;
}

.login-form .form-label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: #2E2E2E;
    margin-bottom: 6px;
}

.input-wrapper {
    position: relative;
}

.input-wrapper > i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #9CA3AF;
    font-size: 0.88rem;
    pointer-events: none;
}

.input-wrapper input {
    width: 100%;
    height: 48px;
    padding: 0 14px 0 42px;
    border: 1px solid #E5E7EB;
    border-radius: 10px;
    background: #F9FAFB;
    font-size: 0.9rem;
    font-family: 'Inter', sans-serif;
    color: #1A1A1A;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.input-wrapper input:focus {
    outline: none;
    border-color: #0F8A5A;
    box-shadow: 0 0 0 3px rgba(15,138,90,0.12);
    background: #fff;
}

.input-wrapper input::placeholder {
    color: #B0B0B0;
}

/* ── Toggle senha ─────────────────────────── */
.toggle-pw {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #9CA3AF;
    cursor: pointer;
    font-size: 0.95rem;
    padding: 4px;
    transition: color 0.2s;
}
.toggle-pw:hover { color: #0F8A5A; }

/* ── Botão Login ──────────────────────────── */
.login-btn {
    width: 100%;
    height: 50px;
    background: linear-gradient(135deg, #0a6b45, #0F8A5A);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 6px 18px rgba(15,138,90,0.35);
    transition: all 0.3s;
    margin-top: 8px;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(15,138,90,0.45);
    filter: brightness(1.06);
}

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

/* ── Footer ───────────────────────────────── */
.login-footer {
    margin-top: 2rem;
    text-align: center;
    font-size: 0.76rem;
    color: #9CA3AF;
}

.login-footer a {
    color: #0F8A5A;
    font-weight: 600;
    text-decoration: none;
}
.login-footer a:hover { text-decoration: underline; }

/* ══════════════════════════════════════════
   RESPONSIVO
   ══════════════════════════════════════════ */
@media (max-width: 1024px) {
    .left-panel { padding: 40px; }
    .panel-title { font-size: 1.5rem; }
}

@media (max-width: 768px) {
    .login-split {
        display: block;
    }

    .left-panel {
        display: none;
    }

    .right-panel {
        min-height: 100vh;
        padding: 16px;
        align-items: center;
        justify-content: center;
    }

    .login-card {
        max-width: 100%;
        padding: 28px 20px;
        border-radius: 14px;
    }
}

@media (max-width: 480px) {
    .login-card { padding: 24px 16px; }
    .login-title { font-size: 1.25rem; }
}
