/* =============================================================
   SwiftPay360 — Login Page CSS
   Light Theme — Premium Design
   ============================================================= */

/* ── Login Layout ───────────────────────────────────────── */
.login-page {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
}

/* ── Left Panel (Brand) ─────────────────────────────────── */
.login-brand-panel {
    background: linear-gradient(145deg, #1240A0 0%, #1A56DB 45%, #0EA5E9 100%);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 60px 50px;
    color: #fff;
}

.login-brand-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

/* Floating circles decoration */
.brand-circle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,.06);
    animation: float 6s ease-in-out infinite;
}
.brand-circle:nth-child(1) { width: 300px; height: 300px; top: -100px; right: -80px; animation-delay: 0s; }
.brand-circle:nth-child(2) { width: 200px; height: 200px; bottom: -60px; left: -50px; animation-delay: 2s; }
.brand-circle:nth-child(3) { width: 120px; height: 120px; top: 40%; left: 20px; animation-delay: 1s; }

.brand-content { position: relative; z-index: 1; text-align: center; max-width: 400px; }

.brand-logo-ring {
    width: 90px;
    height: 90px;
    background: rgba(255,255,255,.15);
    border: 2px solid rgba(255,255,255,.3);
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 28px;
    font-size: 2.2rem;
    backdrop-filter: blur(10px);
    position: relative;
}
.brand-logo-ring::after {
    content: '';
    position: absolute;
    inset: -8px;
    border: 2px solid rgba(255,255,255,.15);
    border-radius: 28px;
    animation: pulse-ring 2.5s ease-out infinite;
}

.brand-title {
    font-size: 2.4rem;
    font-weight: 800;
    letter-spacing: -.02em;
    margin-bottom: 10px;
    line-height: 1.2;
}
.brand-title span { color: #BAE6FD; }

.brand-tagline {
    font-size: 1rem;
    opacity: .85;
    margin-bottom: 48px;
    font-weight: 400;
}

.brand-features { display: flex; flex-direction: column; gap: 16px; width: 100%; }

.brand-feature {
    display: flex;
    align-items: center;
    gap: 14px;
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 12px;
    padding: 14px 18px;
    backdrop-filter: blur(4px);
    text-align: left;
    transition: var(--transition);
}
.brand-feature:hover { background: rgba(255,255,255,.15); transform: translateX(4px); }

.brand-feature-icon {
    width: 38px;
    height: 38px;
    background: rgba(255,255,255,.2);
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}
.brand-feature-text strong { display: block; font-size: .9rem; font-weight: 600; }
.brand-feature-text span  { font-size: .78rem; opacity: .75; }

.brand-footer {
    position: absolute;
    bottom: 24px;
    font-size: .75rem;
    opacity: .55;
    text-align: center;
}

/* ── Right Panel (Form) ─────────────────────────────────── */
.login-form-panel {
    background: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 60px 50px;
    overflow-y: auto;
}

.login-form-container {
    width: 100%;
    max-width: 420px;
    animation: fadeInUp .5s ease;
}

.login-form-header { margin-bottom: 36px; }

.login-form-header h1 {
    font-size: 1.875rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -.02em;
    margin-bottom: 6px;
}
.login-form-header p { font-size: .9375rem; color: var(--text-muted); }

/* Welcome badge */
.welcome-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #EFF6FF, #DBEAFE);
    color: var(--primary);
    border: 1px solid #BFDBFE;
    border-radius: 20px;
    padding: 5px 14px;
    font-size: .78rem;
    font-weight: 600;
    margin-bottom: 18px;
    letter-spacing: .03em;
}
.welcome-badge::before {
    content: '';
    width: 6px; height: 6px;
    background: var(--primary);
    border-radius: 50%;
    animation: pulse-ring 1.5s ease-out infinite;
}

/* Form Card */
.login-card {
    background: #FAFBFF;
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 36px 32px;
    box-shadow: var(--shadow-md);
}

/* Submit button with spinner */
.btn-login {
    position: relative;
    overflow: hidden;
}
.btn-login .btn-text { transition: var(--transition); }
.btn-login .btn-spinner {
    display: none;
    width: 18px; height: 18px;
    border: 2px solid rgba(255,255,255,.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin .7s linear infinite;
}
.btn-login.loading .btn-text { opacity: 0; }
.btn-login.loading .btn-spinner { display: block; }

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

/* Remember + Forgot row */
.login-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}
.forgot-link {
    font-size: .85rem;
    font-weight: 600;
    color: var(--primary);
    transition: var(--transition);
}
.forgot-link:hover { color: var(--primary-dark); text-decoration: underline; }

/* Divider */
.login-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 24px 0;
    color: var(--text-muted);
    font-size: .8125rem;
}
.login-divider::before,
.login-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

/* Stats strip */
.login-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 28px;
}
.stat-item {
    text-align: center;
    padding: 12px 8px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    transition: var(--transition);
}
.stat-item:hover { border-color: var(--primary-light); box-shadow: var(--shadow-sm); }
.stat-value {
    font-size: 1.125rem;
    font-weight: 800;
    color: var(--primary);
    display: block;
}
.stat-label {
    font-size: .7rem;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .05em;
}

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 900px) {
    .login-page { grid-template-columns: 1fr; }
    .login-brand-panel { display: none; }
    .login-form-panel { padding: 40px 24px; min-height: 100vh; }
    .login-card { padding: 28px 22px; }
}

@media (max-width: 420px) {
    .login-form-panel { padding: 32px 16px; }
    .login-card { padding: 24px 18px; }
    .brand-title { font-size: 1.75rem; }
    .login-row { flex-direction: column; align-items: flex-start; gap: 10px; }
}

/* ── Mobile Header (shown when brand panel hidden) ──────── */
.mobile-brand-header {
    display: none;
    text-align: center;
    margin-bottom: 28px;
}
.mobile-brand-logo {
    width: 64px; height: 64px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 12px;
    font-size: 1.6rem;
    color: #fff;
}
.mobile-brand-name { font-size: 1.5rem; font-weight: 800; color: var(--text-primary); }
.mobile-brand-name span { color: var(--primary); }

@media (max-width: 900px) {
    .mobile-brand-header { display: block; }
}
