:root {
    --primary: #1e3a8a;
    --primary-light: #eff6ff;
    --background: #f8fafc;
    --surface: #ffffff;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --border: #e2e8f0;
    --radius-lg: 16px;
    --radius-md: 12px;
}

body {
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--background);
    color: var(--text-primary);
}

.login-container {
    display: grid;
    grid-template-columns: 45% 55%;
    min-height: 100vh;
}

/* Left Brand Pane */
.left-pane {
    background: linear-gradient(135deg, #f0f4f8 0%, #e1eaf2 100%);
    padding: 60px 8%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    border-right: 1px solid var(--border);
}

.left-pane::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: radial-gradient(#1e3a8a 0.5px, transparent 0.5px);
    background-size: 24px 24px;
    opacity: 0.05;
    pointer-events: none;
}

.brand-wrapper {
    z-index: 2;
}

.brand-logo-text {
    font-size: 24px;
    font-weight: 800;
    color: #1e3a8a;
    display: flex;
    align-items: center;
    gap: 8px;
}

.badge-b2b {
    background-color: #1e3a8a;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 20px;
    text-transform: uppercase;
}

.brand-content {
    margin-top: 40px;
    margin-bottom: auto;
    z-index: 2;
}

.brand-title {
    font-size: 44px;
    font-weight: 800;
    line-height: 1.15;
    color: #1e3a8a;
    margin-bottom: 20px;
}

.brand-desc {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 35px;
}

/* Feature Cards */
.feature-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.02), 0 2px 4px -2px rgb(0 0 0 / 0.02);
}

.feature-icon-wrapper {
    background-color: var(--primary-light);
    color: var(--primary);
    border-radius: 8px;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feature-card-content h4 {
    font-size: 14px;
    font-weight: 700;
    margin: 0 0 4px 0;
    color: var(--text-primary);
}

.feature-card-content p {
    font-size: 12px;
    margin: 0;
    color: var(--text-secondary);
    line-height: 1.5;
}

.left-footer {
    font-size: 11px;
    color: #94a3b8;
    z-index: 2;
}

/* Right Form Pane */
.right-pane {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.login-form-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 25px -5px rgb(0 0 0 / 0.04), 0 8px 10px -6px rgb(0 0 0 / 0.04);
    width: 100%;
    max-width: 480px;
    padding: 48px;
}

.card-title {
    font-size: 28px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.card-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

/* Segmented Control / Tab Switcher */
.tab-switcher {
    background-color: #f1f5f9;
    border-radius: 8px;
    padding: 4px;
    display: flex;
    margin-bottom: 28px;
}

.tab-btn {
    flex: 1;
    border: none;
    background: transparent;
    padding: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tab-btn.active {
    background-color: var(--primary);
    color: #ffffff;
    box-shadow: 0 2px 4px 0 rgb(0 0 0 / 0.08);
}

/* Input Fields */
.form-group-custom {
    margin-bottom: 20px;
}

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

.input-icon-group {
    position: relative;
}

.input-icon-group i.input-prepend-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    width: 16px;
    height: 16px;
}

.input-icon-group input {
    width: 100%;
    height: 46px;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 10px 14px 10px 42px;
    font-size: 14px;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.input-icon-group input:focus {
    border-color: var(--primary);
}

.input-icon-group i.input-append-icon {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    cursor: pointer;
    width: 16px;
    height: 16px;
}

/* Form Footer Helpers */
.form-footer-helpers {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    margin-bottom: 24px;
}

.checkbox-remember {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
}

.checkbox-remember input {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

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

/* Action Buttons */
.btn-signin {
    background-color: var(--primary);
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    width: 100%;
    height: 48px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background-color 0.2s;
}

.btn-signin:hover {
    background-color: #172554;
}

/* Separator */
.separator-wrapper {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 24px 0;
}

.separator-line {
    flex: 1;
    height: 1px;
    background-color: var(--border);
}

.separator-text {
    font-size: 12px;
    color: #94a3b8;
    padding: 0 16px;
}

/* SSO Button */
.btn-sso {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    width: 100%;
    height: 46px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: background-color 0.2s;
}

.btn-sso:hover {
    background-color: #f8fafc;
}

.btn-sso img {
    width: 18px;
    height: 18px;
}

.card-footer-support {
    text-align: center;
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 32px;
}

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

/* Responsive */
@media (max-width: 991px) {
    .login-container {
        grid-template-columns: 100%;
    }
    .left-pane {
        display: none;
    }
}
