:root {
    --primary: #6C4DF6;
    --primary-dark: #5B3FE0;
    --secondary: #8B5CF6;
    --deep: #2A1364;
    --deep-mid: #4C2889;
    --bg: #F4F6FB;
    --text: #1E293B;
    --muted: #64748B;
    --white: #ffffff;
    --border: #E5E7EB;
    --success-bg: #F0FDF4;
}

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

body.login-page {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #eef2ff, #f8f9ff);
    min-height: 100vh;
}

.login-wrapper {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
}

.login-container {
    display: flex;
    width: 100%;
    max-width: 1080px;
    min-height: 640px;
    background: var(--white);
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 30px 60px -15px rgba(76, 40, 137, 0.35);
}

/* ===================== LEFT PANEL ===================== */
.login-left {
    position: relative;
    flex: 1 1 46%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 44px 40px;
    color: var(--white);
    background:
        radial-gradient(circle at 80% 15%, rgba(255,255,255,0.10), transparent 45%),
        linear-gradient(165deg, var(--deep) 0%, var(--deep-mid) 48%, var(--primary) 100%);
    overflow: hidden;
}

.login-left::before,
.login-left::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    border: 1px dashed rgba(43, 13, 13, 0.18);
    pointer-events: none;
}

.login-left::before {
    width: 420px;
    height: 420px;
    top: -140px;
    right: -160px;
}

.login-left::after {
    width: 280px;
    height: 280px;
    bottom: -100px;
    left: -80px;
    border-style: solid;
    border-color: rgba(255, 255, 255, 0.06);
}

.login-left > * {
    position: relative;
    z-index: 1;
}

.logo-area {
    margin-bottom: 30px;
}

.loan-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.loan-logo .logo-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

.loan-logo h2 {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.2px;
}

.loan-logo p {
    font-size: 11px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.65);
    margin-top: 2px;
}

.hero-badge {
    width: 108px;
    height: 108px;
    margin: 8px auto 14px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 0 10px rgba(255, 255, 255, 0.05);
}

.hero-badge i {
    font-size: 42px;
}

.hero-badge-label {
    text-align: center;
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 26px;
}

.welcome-text h1 {
    font-size: 26px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 10px;
}

.welcome-text p {
    font-size: 13.5px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.75);
    max-width: 320px;
}

.feature-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin: 26px 0;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13.5px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.92);
}

.feature-item i {
    width: 32px;
    height: 32px;
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.left-footer-card {
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 16px;
    padding: 18px 20px;
    backdrop-filter: blur(6px);
}

.left-footer-card .loan-logo {
    margin-bottom: 10px;
}

.left-footer-card .logo-icon {
    width: 34px;
    height: 34px;
    font-size: 16px;
    border-radius: 9px;
}

.left-footer-card .loan-logo h2 {
    font-size: 15px;
}

.left-footer-card .loan-logo p {
    font-size: 9px;
}

.left-footer-card p.tagline {
    font-size: 12.5px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.75);
}

.dots {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 14px;
}

.dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
}

.dots span.active {
    width: 22px;
    border-radius: 4px;
    background: var(--white);
}

/* ===================== RIGHT PANEL ===================== */
.login-right {
    flex: 1 1 54%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 56px;
}

.login-card {
    width: 100%;
    max-width: 380px;
}

.brand-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 28px;
}

.brand-header .logo-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 22px;
    flex-shrink: 0;
    box-shadow: 0 8px 18px -6px rgba(108, 77, 246, 0.55);
}

.brand-header h2 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
    line-height: 1.2;
}

.brand-header p {
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--muted);
    margin-top: 2px;
}

.login-card h1.form-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 6px;
}

.login-card .subtitle {
    font-size: 13.5px;
    color: var(--muted);
    margin-bottom: 24px;
}

.form-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
    display: block;
}

.mb-3, .mb-4 {
    margin-bottom: 18px !important;
}

.input-group {
    border: 1.5px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.input-group:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(108, 77, 246, 0.12);
}

.input-group-text {
    background: var(--white);
    border: none;
    color: var(--muted);
    padding-left: 14px;
    padding-right: 8px;
}

.form-control {
    border: none;
    padding: 11px 12px 11px 4px;
    font-size: 14px;
    color: var(--text);
}

.form-control:focus {
    box-shadow: none;
    outline: none;
}

.form-control::placeholder {
    color: #A1A9B8;
}

.form-options {
    display: flex;
    justify-content: flex-end;
    margin-top: -8px;
    margin-bottom: 18px;
}

.forgot-link {
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
}

.forgot-link:hover {
    text-decoration: underline;
}

.login-btn {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    border: none;
    border-radius: 10px;
    padding: 13px;
    font-size: 14.5px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 10px 20px -8px rgba(108, 77, 246, 0.6);
    transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.login-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 24px -8px rgba(108, 77, 246, 0.7);
    color: var(--white);
}

.divider-text {
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--muted);
    font-size: 12px;
    margin: 22px 0 16px;
}

.divider-text::before,
.divider-text::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--border);
}

.divider-text span {
    padding: 0 12px;
}

.secure-info {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: #F5F3FF;
    border: 1px solid #E9E4FF;
    border-radius: 12px;
    padding: 13px 14px;
    font-size: 12.5px;
    color: var(--muted);
    line-height: 1.5;
}

.secure-info i {
    color: var(--primary);
    font-size: 17px;
    margin-top: 1px;
    flex-shrink: 0;
}

.secure-info strong {
    color: var(--text);
    display: block;
    font-size: 13px;
    margin-bottom: 1px;
}

.alert {
    border-radius: 10px;
    font-size: 13px;
    padding: 10px 14px;
    margin-bottom: 16px;
}

.alert-danger {
    background: #FEF2F2;
    color: #B91C1C;
    border: 1px solid #FECACA;
}

.alert-info {
    background: #EFF6FF;
    color: #1D4ED8;
    border: 1px solid #BFDBFE;
}

.alert-success {
    background: var(--success-bg);
    color: #15803D;
    border: 1px solid #BBF7D0;
}

.password-toggle {
    background: var(--white);
    border: none;
    color: var(--muted);
    padding-right: 14px;
    cursor: pointer;
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 900px) {
    .login-wrapper {
        padding: 16px;
    }
    .login-container {
        flex-direction: column;
        border-radius: 20px;
    }
    .login-left {
        padding: 32px 28px;
    }
    .welcome-text p {
        max-width: none;
    }
    .login-right {
        padding: 36px 28px;
    }
}
