/* ---- from legacy login.php, lines 61-366 ---- */
/* Hide default page title */
.page-title { display: none !important; }

/* ===== MODERN LOGIN PAGE ===== */
.modern-login-section {
    min-height: calc(100vh - 78px);
    background: linear-gradient(135deg, #135402 0%, #135402 50%, #197003 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 16px;
    position: relative;
    overflow: hidden;
}
.modern-login-section .bg-circle1 {
    position: absolute; top: -120px; right: -120px;
    width: 420px; height: 420px; border-radius: 50%;
    background: rgba(255,255,255,0.05); pointer-events: none;
}
.modern-login-section .bg-circle2 {
    position: absolute; bottom: -80px; left: -80px;
    width: 300px; height: 300px; border-radius: 50%;
    background: rgba(255,255,255,0.04); pointer-events: none;
}
.login-wrapper {
    display: flex;
    width: 100%;
    max-width: 920px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 32px 80px rgba(0,0,0,0.50);
    position: relative;
    z-index: 1;
    animation: loginFadeUp 0.55s ease both;
}
@keyframes loginFadeUp {
    from { opacity:0; transform:translateY(28px); }
    to   { opacity:1; transform:translateY(0); }
}

/* LEFT PANEL */
.login-left {
    flex: 1;
    background: linear-gradient(165deg, #135402 0%, #197003 70%, #C89A3C 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 52px 36px;
    color: #fff;
    position: relative;
    overflow: hidden;
}
.login-left .lft-circle1 {
    position:absolute; top:-50px; right:-50px; width:180px; height:180px;
    border-radius:50%; background:rgba(255,255,255,0.07); pointer-events:none;
}
.login-left .lft-circle2 {
    position:absolute; bottom:-40px; left:-40px; width:140px; height:140px;
    border-radius:50%; background:rgba(255,255,255,0.05); pointer-events:none;
}
.login-left-logo {
    margin-bottom:26px; position:relative; z-index:1;
    background:rgba(255,255,255,0.96);
    border-radius:20px; padding:14px 22px;
    box-shadow:0 8px 32px rgba(0,0,0,0.25), 0 0 0 1px rgba(255,255,255,0.15);
    display:inline-block;
}
.login-left-logo img { width:110px; display:block; }
.login-left h2 {
    font-size:25px; font-weight:800; color:#fff;
    margin-bottom:12px; text-align:center;
    position:relative; z-index:1; line-height:1.35;
}
.login-left .left-desc {
    font-size:13.5px; color:rgba(255,255,255,0.82);
    text-align:center; line-height:1.75;
    position:relative; z-index:1; margin-bottom:30px;
}
.login-trust-list { display:flex; flex-direction:column; gap:10px; width:100%; position:relative; z-index:1; }
.login-trust-item {
    display:flex; align-items:center; gap:10px;
    background:rgba(255,255,255,0.10); border-radius:10px;
    padding:10px 14px; font-size:13px; color:rgba(255,255,255,0.92);
}
.login-trust-item i { color:#FFE600; font-size:15px; width:18px; flex-shrink:0; }

/* RIGHT PANEL */
.login-right {
    flex: 1.1;
    background: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 48px 44px;
}
.login-right h3 { font-size:22px; font-weight:800; color:#1a2c4e; margin-bottom:4px; }
.login-subtitle { font-size:13.5px; color:#888; margin-bottom:22px; }

/* Tabs */
.lg-tabs {
    display:flex; background:#f4f6f9; border-radius:10px;
    padding:4px; margin-bottom:24px; gap:4px;
}
.lg-tab-btn {
    flex:1; padding:10px 6px; font-size:13px; font-weight:600;
    border:none; border-radius:8px; background:transparent;
    color:#666; cursor:pointer; transition:all 0.25s ease;
}
.lg-tab-btn.active {
    background:#fff; color:#197003;
    box-shadow:0 2px 10px rgba(0,0,0,0.10);
}

/* Tab panes */
.lg-tab-pane { display:none; }
.lg-tab-pane.active { display:block; }

/* Alert boxes */
.lg-alert-error {
    background:#fff1f3; border:1.5px solid #ffbcc6; color:#c0003c;
    border-radius:10px; padding:10px 14px; font-size:13px; font-weight:600;
    margin-bottom:16px; display:flex; align-items:center; gap:8px;
}
.lg-alert-info {
    background:#E6F4E6; border:1.5px solid #197003; color:#197003;
    border-radius:10px; padding:10px 14px; font-size:13px; font-weight:600;
    margin-bottom:16px; display:flex; align-items:center; gap:8px;
}

/* ── Floating label inputs – full rewrite ── */
.fl-wrap {
    position: relative;
    margin-bottom: 18px;
}
.fl-wrap input {
    width: 100% !important;
    height: 62px !important;
    border: 1.5px solid #d1d5db !important;
    border-radius: 12px !important;
    padding: 30px 50px 10px 52px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    color: #1a2c4e !important;
    background: #f9fafb !important;
    box-shadow: none !important;
    outline: none !important;
    box-sizing: border-box !important;
    line-height: 1 !important;
    transition: border-color 0.22s ease, box-shadow 0.22s ease, background 0.22s ease !important;
    appearance: none !important;
}
.fl-wrap input:focus {
    border-color: #C89A3C !important;
    background: #ffffff !important;
    box-shadow: 0 0 0 3px rgba(224, 149, 95,0.15) !important;
}
.fl-wrap input.input-err {
    border-color: #ff4f6a !important;
    box-shadow: 0 0 0 3px rgba(255,79,106,0.14) !important;
}
/* Label – default: sits at vertical centre (placeholder feel) */
.fl-wrap label {
    position: absolute;
    left: 52px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    color: #9ca3af;
    pointer-events: none;
    transition: top 0.18s ease, font-size 0.18s ease, color 0.18s ease, transform 0.18s ease;
    white-space: nowrap;
    line-height: 1;
}
/* Label – floated: pinned to top, guaranteed above text (text starts at 30px) */
.fl-wrap input:focus ~ label,
.fl-wrap input:not(:placeholder-shown) ~ label {
    top: 9px !important;
    transform: none !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    color: #C89A3C !important;
    letter-spacing: 0.4px !important;
}
/* Left icon */
.fl-wrap .fl-left-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #d1d5db;
    font-size: 15px;
    pointer-events: none;
    transition: color 0.22s;
}
.fl-wrap input:focus ~ label ~ .fl-left-icon { color: #C89A3C; }
/* Password eye toggle */
.fl-pw-toggle {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #9ca3af;
    font-size: 14px;
    padding: 0;
    transition: color 0.2s;
    z-index: 2;
}
.fl-pw-toggle:hover { color: #C89A3C; }

/* Extras row */
.lg-extras {
    display:flex; justify-content:space-between;
    align-items:center; margin-bottom:20px; font-size:13px;
}
.lg-remember { display:flex; align-items:center; gap:7px; color:#555; cursor:pointer; }
.lg-remember input { accent-color:#197003; width:15px; height:15px; }
.lg-forgot { color:#197003; font-weight:600; text-decoration:none; font-size:13px; }
.lg-forgot:hover { text-decoration:underline; }

/* Submit button */
.lg-submit-btn {
    width:100%; height:50px;
    background:#197003;
    color:#fff; border:none; border-radius:12px;
    font-size:15px; font-weight:700; cursor:pointer;
    transition:background 0.2s ease; letter-spacing:0.4px;
    display:flex; align-items:center; justify-content:center; gap:8px;
    position:relative; overflow:hidden;
}
.lg-submit-btn:hover {
    background:linear-gradient(135deg, #135402 0%, #135402 100%);
    transform:translateY(-2px);
    box-shadow:none;
}
.lg-submit-btn:active { transform:translateY(0); }
.lg-submit-btn.is-loading .btn-label { visibility:hidden; }
.lg-submit-btn.is-loading::after {
    content:''; position:absolute;
    width:20px; height:20px;
    border:2.5px solid rgba(255,255,255,0.4);
    border-top-color:#fff; border-radius:50%;
    animation:lgSpin 0.7s linear infinite;
}
@keyframes lgSpin { to { transform:rotate(360deg); } }

/* Divider */
.lg-divider {
    display:flex; align-items:center; gap:12px;
    margin:16px 0; font-size:12px; color:#bbb; font-weight:500;
}
.lg-divider::before, .lg-divider::after {
    content:''; flex:1; height:1px; background:#e8eaed;
}

/* Social buttons */
.lg-social-row { display:flex; gap:10px; margin-bottom:2px; }
.lg-social-btn {
    flex:1; height:42px; border:1.5px solid #e0e4ea;
    border-radius:10px; background:#fff; cursor:pointer;
    display:flex; align-items:center; justify-content:center; gap:7px;
    font-size:13px; font-weight:600; color:#444;
    transition:all 0.25s ease; text-decoration:none;
}
.lg-social-btn:hover { border-color:#197003; background:#F4F1EA; color:#197003; }

/* Security line */
.lg-security {
    display:flex; align-items:center; justify-content:center;
    gap:6px; font-size:12px; color:#197003;
    font-weight:600; margin-top:14px;
}

/* Register footer */
.lg-register-row {
    text-align:center; margin-top:16px;
    font-size:13px; color:#777;
}
.lg-register-row a { color:#197003; font-weight:700; text-decoration:none; }
.lg-register-row a:hover { text-decoration:underline; }
.lg-register-row .lg-terms-link { color:#aaa; font-size:11.5px; }

/* Coming soon notice */
.coming-soon-notice {
    background:#fffbeb; border:1.5px solid #fde68a; border-radius:10px;
    padding:10px 14px; font-size:13px; color:#92400e;
    margin-bottom:18px;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .login-wrapper { flex-direction:column; max-width:420px; }
    .login-left { padding:28px 24px; }
    .login-trust-list { display:none; }
    .login-right { padding:32px 24px; }
}
@media (max-width: 480px) {
    .modern-login-section { padding:16px 10px; }
    .login-right { padding:24px 16px; }
    .lg-social-row { flex-direction:column; }
}

