:root {
    --primary: #4f46e5;
    --primary-hover: #4338ca;
    --dark: #0f172a;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --radius-md: clamp(8px, 1.2vw, 12px);
    --radius-lg: clamp(12px, 1.8vw, 20px);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
}

body {
    background-color: #ffffff;
    color: var(--text-main);
    min-height: 100vh;
    overflow-x: auto;
}

/* Preserving Desktop Split Screen Side-By-Side Layout Scaled Dynamically */
.split-auth-container {
    display: flex;
    flex-direction: row;
    min-height: 100vh;
    width: 100%;
}

/* Left Banner Side */
.auth-banner {
    width: clamp(220px, 42vw, 550px);
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%);
    color: #ffffff;
    padding: clamp(20px, 4vw, 60px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.auth-banner::before {
    content: '';
    position: absolute;
    top: -100px;
    left: -100px;
    width: 300px;
    height: 300px;
    background: rgba(99, 102, 241, 0.2);
    filter: blur(80px);
    border-radius: 50%;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: clamp(6px, 1vw, 12px);
    text-decoration: none;
    color: #ffffff;
    font-weight: 800;
    font-size: clamp(16px, 2.2vw, 24px);
    z-index: 2;
    white-space: nowrap;
}

.logo-img {
    width: clamp(28px, 3.2vw, 42px);
    height: clamp(28px, 3.2vw, 42px);
    border-radius: clamp(6px, 1vw, 10px);
}

.logo-badge {
    background: #4f46e5;
    color: #ffffff;
    font-size: clamp(8.5px, 1vw, 11px);
    font-weight: 800;
    padding: 2px clamp(4px, 0.6vw, 8px);
    border-radius: 6px;
    vertical-align: middle;
}

.banner-content {
    z-index: 2;
    margin: auto 0;
}

.banner-tag {
    display: inline-flex;
    align-items: center;
    gap: clamp(4px, 0.8vw, 8px);
    background: rgba(99, 102, 241, 0.25);
    color: #818cf8;
    padding: clamp(4px, 0.6vw, 6px) clamp(8px, 1.2vw, 14px);
    border-radius: 20px;
    font-size: clamp(9.5px, 1.1vw, 12px);
    font-weight: 700;
    margin-bottom: clamp(14px, 2.2vw, 24px);
}

.banner-content h1 {
    font-size: clamp(18px, 2.8vw, 36px);
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: clamp(10px, 1.6vw, 16px);
    letter-spacing: -0.5px;
}

.banner-content p {
    color: #94a3b8;
    font-size: clamp(11.5px, 1.4vw, 16px);
    line-height: 1.5;
    margin-bottom: clamp(18px, 2.8vw, 32px);
}

.banner-features {
    display: flex;
    flex-direction: column;
    gap: clamp(8px, 1.2vw, 12px);
    margin-bottom: clamp(20px, 3.2vw, 40px);
}

.b-feature {
    display: flex;
    align-items: center;
    gap: clamp(6px, 1vw, 10px);
    font-size: clamp(11px, 1.35vw, 14px);
    font-weight: 600;
    color: #e2e8f0;
}

.b-feature i {
    color: #10b981;
}

.banner-testimonial {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: clamp(12px, 2vw, 24px);
    border-radius: var(--radius-md);
}

.banner-testimonial p {
    font-size: clamp(10.5px, 1.3vw, 14px);
    color: #cbd5e1;
    font-style: italic;
    margin-bottom: clamp(6px, 1vw, 12px);
}

.testimonial-author strong {
    display: block;
    font-size: clamp(10px, 1.2vw, 13px);
    color: #ffffff;
}

.testimonial-author span {
    font-size: clamp(8.5px, 1vw, 11px);
    color: #818cf8;
}

/* Right Form Side */
.auth-form-side {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(20px, 3.5vw, 40px);
    background-color: #f8fafc;
}

.form-wrapper {
    width: 100%;
    max-width: 420px;
}

.form-header {
    margin-bottom: clamp(20px, 3vw, 32px);
}

.form-header h2 {
    font-size: clamp(20px, 2.6vw, 28px);
    font-weight: 800;
    color: var(--dark);
    letter-spacing: -0.5px;
}

.form-header p {
    color: var(--text-muted);
    font-size: clamp(11.5px, 1.35vw, 14px);
    margin-top: 4px;
}

.btn-social {
    width: 100%;
    padding: clamp(8px, 1.2vw, 12px);
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: clamp(11.5px, 1.35vw, 14px);
    font-weight: 700;
    color: var(--text-main);
    cursor: pointer;
    transition: all 0.2s;
}

.btn-social:hover {
    background: #f1f5f9;
}

.divider {
    text-align: center;
    margin: clamp(16px, 2.2vw, 24px) 0;
    position: relative;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--border-color);
}

.divider span {
    position: relative;
    background: #f8fafc;
    padding: 0 clamp(8px, 1vw, 12px);
    font-size: clamp(9.5px, 1.1vw, 11px);
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}

.form-group {
    margin-bottom: clamp(14px, 1.8vw, 20px);
}

.form-group label {
    display: block;
    font-size: clamp(11px, 1.3vw, 13px);
    font-weight: 700;
    margin-bottom: 6px;
}

.label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.forgot-link {
    font-size: clamp(10px, 1.2vw, 12px);
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
}

.input-icon-group {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon-group i:first-child {
    position: absolute;
    left: clamp(10px, 1.2vw, 14px);
    color: #94a3b8;
    font-size: clamp(13px, 1.5vw, 16px);
}

.toggle-pwd {
    position: absolute;
    right: clamp(10px, 1.2vw, 14px);
    left: auto !important;
    cursor: pointer;
    color: #94a3b8;
}

.input-icon-group input {
    width: 100%;
    padding: clamp(8px, 1.2vw, 12px) clamp(30px, 3.2vw, 40px) clamp(8px, 1.2vw, 12px) clamp(32px, 3.5vw, 42px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: clamp(11.5px, 1.35vw, 14px);
    background: #ffffff;
    transition: all 0.2s;
}

.input-icon-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
}

.form-options {
    margin-bottom: clamp(16px, 2.2vw, 24px);
}

.checkbox-container {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: clamp(10.5px, 1.25vw, 13px);
    color: var(--text-muted);
    cursor: pointer;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: clamp(10px, 1.4vw, 14px) clamp(14px, 1.8vw, 20px);
    border-radius: var(--radius-md);
    font-size: clamp(12px, 1.4vw, 15px);
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.3);
}

.btn-primary:hover {
    background: var(--primary-hover);
}

.btn-block { width: 100%; }

.auth-footer {
    margin-top: clamp(20px, 2.8vw, 28px);
    text-align: center;
    font-size: clamp(11.5px, 1.35vw, 14px);
    color: var(--text-muted);
}

.mobile-brand-logo {
    display: none;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--dark);
    font-weight: 800;
    font-size: 22px;
    margin-bottom: 24px;
}

.auth-footer a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
}

/* Responsive Adaptation: Form at Top, Banner Showcase below on Mobile */
@media (max-width: 900px) {
    .split-auth-container {
        flex-direction: column-reverse; /* Form on top, Showcase below at bottom */
        min-height: 100vh;
    }

    .mobile-brand-logo {
        display: flex;
        justify-content: center;
    }

    .auth-form-side {
        order: 1; /* First at top on mobile */
        padding: 32px 20px 24px 20px;
        width: 100%;
    }

    .auth-banner {
        order: 2; /* Below form at bottom on mobile */
        width: 100%;
        padding: 32px 20px 32px 20px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .banner-content h1 {
        font-size: 20px;
        margin-bottom: 8px;
    }

    .banner-content p {
        font-size: 13px;
        margin-bottom: 16px;
    }

    .banner-features {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 12px;
        margin-bottom: 16px;
    }

    .banner-testimonial {
        display: none;
    }

    .form-wrapper {
        max-width: 100%;
    }

    .form-header h2 {
        font-size: 24px;
    }

    .btn {
        padding: 12px 18px;
        font-size: 14px;
    }

    .input-icon-group input {
        padding: 12px 36px 12px 38px;
        font-size: 14px;
    }
}


