/* ============================================================
   LOGIN / ACCOUNT PAGES — Anomalías
   Uses variables from site.css
   ============================================================ */

.login-body {
    margin: 0; padding: 0;
    background: #f0f4f8;
    min-height: 100vh;
}

.login-page {
    display: flex;
    min-height: 100vh;
}

/* ── LEFT PANEL ─────────────────────────────────────────────── */
.login-left {
    width: 44%;
    background: linear-gradient(145deg, var(--primary-dark) 0%, var(--primary) 50%, #1a2f4a 100%);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 52px 56px 36px;
    position: relative;
    overflow: hidden;
}

.login-left::before {
    content: '';
    position: absolute;
    width: 420px; height: 420px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.06);
    top: -100px; right: -140px;
    pointer-events: none;
}
.login-left::after {
    content: '';
    position: absolute;
    width: 280px; height: 280px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.05);
    bottom: 60px; left: -80px;
    pointer-events: none;
}

.login-left-content { position: relative; z-index: 1; }

.login-logo-wrap {
    display: flex; align-items: center; gap: 10px;
    margin-bottom: 52px;
}
.login-logo-icon {
    width: 40px; height: 40px;
    background: rgba(255,255,255,0.12);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 20px;
}
.login-logo-text  { font-size: 20px; font-weight: 700; color: #fff; letter-spacing: 0.5px; }
.login-logo-accent { color: #7fb3d3; margin-left: 1px; }

.login-headline {
    font-size: 36px; font-weight: 800; color: #fff;
    line-height: 1.2; margin-bottom: 18px; letter-spacing: -0.5px;
}
.login-subtext {
    font-size: 14px; color: rgba(255,255,255,0.65);
    line-height: 1.65; margin-bottom: 44px; max-width: 340px;
}

.login-features { display: flex; flex-direction: column; gap: 14px; }
.login-feature-item {
    display: flex; align-items: center; gap: 12px;
    color: rgba(255,255,255,0.85); font-size: 13.5px;
}
.login-feature-item i {
    width: 32px; height: 32px;
    background: rgba(255,255,255,0.1); border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-size: 15px; flex-shrink: 0; color: #a8d4ee;
}

.login-left-footer { display: flex; align-items: center; gap: 8px; position: relative; z-index: 1; }
.login-footer-sep  { color: rgba(255,255,255,0.3); font-size: 16px; margin: 0 4px; }
.login-appian      { font-size: 15px; font-weight: 700; color: rgba(255,255,255,0.55); font-style: italic; }

/* Servinform logo */
.servinform-logo-footer { height: 26px; width: auto; filter: brightness(0) invert(1); opacity: 0.7; flex-shrink: 0; }
.servinform-logo-card   { height: 28px; width: auto; display: block; margin: 0 auto 18px; }

/* ── RIGHT PANEL ─────────────────────────────────────────────── */
.login-right {
    flex: 1;
    display: flex; align-items: center; justify-content: center;
    padding: 40px 32px;
    background: #f0f4f8;
}

.login-card {
    background: #fff;
    border-radius: 4px;
    border: 1px solid var(--border);
    box-shadow: 0 2px 12px rgba(44,74,110,0.08);
    width: 100%;
    max-width: 440px;
    overflow: hidden;
}

.login-card-header {
    padding: 28px 32px 20px;
    text-align: center;
    border-bottom: 1px solid var(--border);
    background: var(--bg-section);
}
.login-card-icon {
    width: 52px; height: 52px;
    background: #e8f0f8; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 24px; color: var(--primary);
    margin: 0 auto 14px;
}
.login-card-title    { font-size: 20px; font-weight: 700; color: #1a2f4a; margin-bottom: 4px; }
.login-card-subtitle { font-size: 12px; color: #6b7c93; margin: 0; }

.login-card-body { padding: 24px 32px; }

/* ── FORM ELEMENTS ───────────────────────────────────────────── */
.login-form-group { display: flex; flex-direction: column; gap: 4px; margin-bottom: 14px; }

.login-form-label { font-size: 12px; font-weight: 600; color: #555; }

.login-input-wrap { position: relative; display: flex; align-items: center; }

.login-input-icon {
    position: absolute; left: 9px;
    color: #999; font-size: 14px; pointer-events: none;
}

.login-form-input {
    width: 100%;
    border: 1px solid #ccc; border-radius: 3px;
    padding: 7px 34px 7px 30px;
    font-size: 13px; color: #333; background: #fff;
    font-family: inherit;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.login-form-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(26,115,181,0.15);
}

.login-toggle-pw {
    position: absolute; right: 7px;
    background: none; border: none; color: #aaa; font-size: 14px;
    cursor: pointer; padding: 0 4px; line-height: 1;
}
.login-toggle-pw:hover { color: #555; }

.login-field-error { font-size: 11px; color: var(--danger); }

.login-alert {
    background: #fff5f5; border: 1px solid #f5c6c6; border-radius: 3px;
    padding: 10px 12px; font-size: 12px; color: var(--danger);
    margin-bottom: 14px; display: flex; align-items: flex-start; gap: 6px;
}

.login-remember { margin-bottom: 14px; }
.login-check-label { display: flex; align-items: center; gap: 6px; font-size: 12px; color: #555; cursor: pointer; }
.login-check { width: 14px; height: 14px; accent-color: var(--primary); }

/* Forgot password link */
.login-forgot {
    display: block; text-align: right;
    font-size: 11.5px; color: var(--text-link);
    text-decoration: none; margin-top: -8px; margin-bottom: 14px;
}
.login-forgot:hover { text-decoration: underline; }

/* Submit button */
.btn-login-submit {
    width: 100%;
    background: var(--accent); color: #fff;
    border: 1px solid var(--accent); border-radius: 3px;
    padding: 8px 16px; font-size: 13px; font-weight: 600;
    cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 6px;
    font-family: inherit; transition: background 0.15s;
    text-decoration: none;
}
.btn-login-submit:hover { background: var(--primary); border-color: var(--primary); color: #fff; }

/* Secondary button (register / back) */
.btn-login-register {
    display: flex; align-items: center; justify-content: center; gap: 4px;
    width: 100%;
    border: 1px solid var(--accent); color: var(--accent); border-radius: 3px;
    padding: 7px 16px; font-size: 13px; font-weight: 600;
    text-decoration: none; transition: background 0.15s; font-family: inherit;
    background: #fff;
}
.btn-login-register:hover { background: #eef4fb; color: var(--primary); }

/* Divider */
.login-divider {
    display: flex; align-items: center; gap: 10px;
    margin: 18px 0; color: #aab4c0; font-size: 11.5px;
}
.login-divider::before,
.login-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }

/* Info box (confirmation pages) */
.login-info-box {
    display: flex; gap: 12px;
    background: #f0f6fb; border: 1px solid #c8dff0; border-radius: 4px; padding: 14px 16px;
}
.login-info-icon   { color: var(--accent); font-size: 18px; flex-shrink: 0; margin-top: 1px; }
.login-info-title  { font-size: 12.5px; font-weight: 700; color: #1a3a5c; margin: 0 0 4px; }
.login-info-text   { font-size: 11.5px; color: #4a6a8a; margin: 0; line-height: 1.5; }

/* Card footer */
.login-card-footer {
    padding: 12px 32px 16px;
    border-top: 1px solid var(--border);
    text-align: center; font-size: 11.5px; color: #8a9bb0;
}
.login-help-link { color: var(--accent); text-decoration: none; font-weight: 600; }
.login-help-link:hover { text-decoration: underline; }

/* ── RESPONSIVE ──────────────────────────────────────────────── */
@media (max-width: 900px) {
    .login-page { flex-direction: column; }
    .login-left { width: 100%; padding: 32px 28px; min-height: auto; }
    .login-headline { font-size: 24px; }
    .login-features, .login-subtext { display: none; }
    .login-left-footer { margin-top: 16px; }
    .login-right { padding: 24px 16px; }
    .login-card-body { padding: 20px 20px; }
    .login-card-header { padding: 20px 20px 14px; }
}
