/* Login page — full viewport split layout */
.login-page {
    min-height: 100vh;
    display: flex;
    font-family: 'Segoe UI', system-ui, sans-serif;
}

/* ── Left Brand Panel ── */
.login-brand {
    width: 42%;
    background: linear-gradient(155deg, #0b2545 0%, #1565c0 55%, #00897b 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 60px 56px;
    position: relative;
    overflow: hidden;
}

/* Decorative circles */
.login-brand::before {
    content: '';
    position: absolute;
    width: 380px; height: 380px;
    background: rgba(255,255,255,0.04);
    border-radius: 50%;
    top: -120px; left: -120px;
}
.login-brand::after {
    content: '';
    position: absolute;
    width: 260px; height: 260px;
    background: rgba(255,255,255,0.04);
    border-radius: 50%;
    bottom: -70px; right: -70px;
}

.brand-logo-wrap {
    width: 120px; height: 120px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 28px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.25);
    border: 3px solid rgba(255,255,255,0.4);
    position: relative; z-index: 1;
    overflow: hidden;
}

.brand-logo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.brand-name {
    color: #fff;
    font-size: 30px;
    font-weight: 700;
    letter-spacing: -0.5px;
    line-height: 1.2;
    position: relative; z-index: 1;
    margin-bottom: 10px;
}

.brand-name span {
    display: block;
    font-size: 14px;
    font-weight: 400;
    color: rgba(255,255,255,0.7);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.brand-tagline {
    color: rgba(255,255,255,0.65);
    font-size: 14.5px;
    line-height: 1.7;
    max-width: 300px;
    position: relative; z-index: 1;
    margin-bottom: 48px;
}

.brand-pills {
    display: flex;
    flex-direction: column;
    gap: 14px;
    position: relative; z-index: 1;
}

.brand-pill {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255,255,255,0.85);
    font-size: 13.5px;
}

.pill-icon {
    width: 34px; height: 34px;
    background: rgba(255,255,255,0.12);
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid rgba(255,255,255,0.15);
}

.brand-footer {
    position: absolute;
    bottom: 32px;
    left: 56px;
    right: 56px;
    z-index: 1;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 18px;
    color: rgba(255,255,255,0.45);
    font-size: 12px;
    line-height: 1.5;
}

/* ── Right Form Panel ── */
.login-form-panel {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 48px;
    background: #fff;
}

.login-form-inner {
    width: 100%;
    max-width: 390px;
}

.login-heading {
    font-size: 26px;
    font-weight: 700;
    color: #1a2332;
    margin-bottom: 6px;
}

.login-subheading {
    color: #64748b;
    font-size: 14px;
    margin-bottom: 36px;
}

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

.form-label-login {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 7px;
}

.input-wrap {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 13px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    pointer-events: none;
    display: flex;
    align-items: center;
}

.input-field {
    width: 100%;
    padding: 11px 14px 11px 40px;
    border: 1.5px solid #e2e8f0;
    border-radius: 7px;
    font-size: 14px;
    font-family: inherit;
    color: #1a2332;
    background: #fafbfc;
    outline: none;
    transition: border-color 0.18s, box-shadow 0.18s, background 0.18s;
}

.input-field:focus {
    border-color: #1565c0;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(21,101,192,0.1);
}

.input-field::placeholder { color: #b0bbc9; }

.toggle-pw {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #94a3b8;
    padding: 2px;
    display: flex;
    align-items: center;
    transition: color 0.18s;
}
.toggle-pw:hover { color: #1565c0; }

.login-btn {
    width: 100%;
    padding: 13px;
    background: linear-gradient(135deg, #1565c0, #00897b);
    color: #fff;
    border: none;
    border-radius: 7px;
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    margin-top: 8px;
    letter-spacing: 0.2px;
    transition: opacity 0.18s, transform 0.18s, box-shadow 0.18s;
    position: relative;
    overflow: hidden;
}
.login-btn:hover {
    opacity: 0.93;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(21,101,192,0.35);
}
.login-btn:active { transform: translateY(0); }

.login-btn-spinner {
    display: none;
    width: 18px; height: 18px;
    border: 2px solid rgba(255,255,255,0.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    margin: 0 auto;
}

.login-divider {
    text-align: center;
    margin: 28px 0 0;
    padding-top: 24px;
    border-top: 1px solid #e2e8f0;
    color: #94a3b8;
    font-size: 12.5px;
}

.login-error {
    background: #fef2f2;
    color: #dc2626;
    border-left: 4px solid #dc2626;
    padding: 11px 14px;
    border-radius: 7px;
    margin-bottom: 22px;
    font-size: 13.5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ── Responsive ── */

/* Mobile logo shown above form on small screens */
.login-mobile-logo {
    display: none;
    text-align: center;
    margin-bottom: 24px;
}
.login-mobile-logo img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid #e2e8f0;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    object-fit: cover;
}
.login-mobile-logo .mob-brand-name {
    font-size: 18px;
    font-weight: 700;
    color: #1a2332;
    margin-top: 8px;
}
.login-mobile-logo .mob-brand-sub {
    font-size: 12px;
    color: #64748b;
    margin-top: 2px;
}

/* Tablet: keep brand panel but smaller */
@media (max-width: 1100px) {
    .login-brand { width: 38%; padding: 48px 40px; }
    .brand-logo-wrap { width: 100px; height: 100px; }
    .brand-name { font-size: 26px; }
}

/* Small tablet / large phone: hide brand panel */
@media (max-width: 768px) {
    .login-brand { display: none; }
    .login-form-panel { padding: 40px 24px; }
    .login-mobile-logo { display: block; }
}

/* Phone */
@media (max-width: 480px) {
    .login-form-panel { padding: 30px 16px; }
    .login-form-inner { max-width: 100%; }
    .login-heading { font-size: 22px; }
    .login-btn { font-size: 14px; padding: 12px; }
}

/* TV / Large screens */
@media (min-width: 1920px) {
    .login-brand { padding: 80px 72px; }
    .brand-logo-wrap { width: 150px; height: 150px; }
    .brand-name { font-size: 38px; }
    .brand-tagline { font-size: 16px; }
    .login-form-inner { max-width: 460px; }
    .login-heading { font-size: 32px; }
}
