/* Split Screen Login Design */

.login-split {
    min-height: 100vh;
    overflow: hidden;
}

.split-container {
    display: flex;
    min-height: 100vh;
}

/* Left Side - Forms */
.split-left {
    flex: 1;
    background: #ffffff;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 40px;
    overflow-y: auto;
}

.form-container {
    width: 100%;
    max-width: 480px;
}

.logo-section {
    text-align: center;
    margin-bottom: 40px;
}

.logo-section .logo {
    height: 100px;
    margin-bottom: 12px;
}

.logo-section .brand-name {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

/* Tabs */
.tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 32px;
    background: #f8fafc;
    padding: 4px;
    border-radius: 12px;
}

.tab {
    flex: 1;
    padding: 12px 20px;
    background: transparent;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.tab:hover:not(:disabled) {
    color: var(--primary);
    background: rgba(102, 126, 234, 0.1);
}

.tab.active {
    background: white;
    color: var(--primary);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.tab:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.tab svg {
    width: 18px;
    height: 18px;
}

/* Tab Content */
.tab-content {
    display: none;
    animation: fadeIn 0.3s;
}

.tab-content.active {
    display: block;
}

.form-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 8px 0;
}

.form-subtitle {
    font-size: 15px;
    color: var(--text-muted);
    margin: 0 0 32px 0;
}

/* Input with Icon */
.input-with-icon {
    position: relative;
}

.input-with-icon > svg:first-child {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: var(--text-muted);
    pointer-events: none;
    z-index: 1;
}

.input-with-icon .form-control {
    padding-left: 44px;
}

.input-with-icon .password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s;
    z-index: 2;
}

.input-with-icon .password-toggle:hover {
    background: var(--bg-tertiary);
    color: var(--primary);
}

.input-with-icon .password-toggle svg {
    width: 18px;
    height: 18px;
}

.input-with-icon input:has(~ .password-toggle) {
    padding-right: 45px;
}

/* Password Strength */
.password-strength {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
}

.strength-bar {
    flex: 1;
    height: 4px;
    background: #e2e8f0;
    border-radius: 2px;
    overflow: hidden;
}

.strength-fill {
    height: 100%;
    transition: all 0.3s;
    border-radius: 2px;
}

.strength-fill.weak {
    background: #ef4444;
}

.strength-fill.medium {
    background: #f59e0b;
}

.strength-fill.strong {
    background: #10b981;
}

.strength-text {
    font-size: 12px;
    font-weight: 600;
    min-width: 50px;
}

/* Password Requirements */
.password-requirements {
    margin-top: 12px;
    padding: 12px;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.password-requirements small {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #64748b;
    font-size: 12px;
    margin-bottom: 8px;
    font-weight: 600;
}

.password-requirements ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.password-requirements li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #64748b;
    padding: 4px 0;
    transition: all 0.2s;
}

.password-requirements li.valid {
    color: #10b981;
}

.password-requirements li.valid svg {
    color: #10b981;
}

.password-requirements li.invalid {
    color: #ef4444;
}

.password-requirements li.invalid svg {
    color: #ef4444;
}

/* Form Footer Links */
.form-footer-links {
    text-align: right;
    margin-bottom: 24px;
}

.link-small {
    color: var(--primary);
    text-decoration: none;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 0.2s;
}

.link-small:hover {
    color: var(--accent);
}

.link-small svg {
    width: 14px;
    height: 14px;
}

/* Button Block */
.btn-block {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    font-size: 16px;
    font-weight: 600;
}

.btn-block svg {
    width: 18px;
    height: 18px;
}

/* Admin Link Bottom */
.admin-link-bottom {
    text-align: center;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #e2e8f0;
}

/* Right Side - Branding */
.split-right {
    flex: 1;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px;
    color: white;
    position: relative;
    overflow: hidden;
}

.branding-content {
    max-width: 500px;
    position: relative;
    z-index: 1;
}

.branding-title {
    font-size: 42px;
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 16px 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.branding-description {
    font-size: 18px;
    line-height: 1.6;
    margin: 0 0 48px 0;
    opacity: 0.95;
}

/* Features */
.features {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.feature-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: rgba(255,255,255,0.15);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    backdrop-filter: blur(10px);
}

.feature-icon svg {
    width: 24px;
    height: 24px;
}

.feature-text h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 8px 0;
}

.feature-text p {
    font-size: 14px;
    margin: 0;
    opacity: 0.9;
    line-height: 1.5;
}

/* Branding Illustration */
.branding-illustration {
    position: absolute;
    bottom: 40px;
    right: 40px;
    width: 300px;
    height: 225px;
    opacity: 0.3;
}

.branding-illustration svg {
    width: 100%;
    height: 100%;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.spin {
    animation: spin 1s linear infinite;
}

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

/* Responsive */
@media (max-width: 968px) {
    .split-container {
        flex-direction: column;
    }
    
    .split-right {
        min-height: 400px;
        padding: 40px;
    }
    
    .branding-title {
        font-size: 32px;
    }
    
    .branding-description {
        font-size: 16px;
        margin-bottom: 32px;
    }
    
    .features {
        gap: 24px;
    }
    
    .feature-item {
        gap: 16px;
    }
    
    .feature-icon {
        width: 40px;
        height: 40px;
    }
    
    .feature-icon svg {
        width: 20px;
        height: 20px;
    }
    
    .branding-illustration {
        display: none;
    }
}

@media (max-width: 640px) {
    .split-left {
        padding: 24px;
    }
    
    .form-container {
        max-width: 100%;
    }
    
    .logo-section {
        margin-bottom: 32px;
    }
    
    .form-title {
        font-size: 24px;
    }
    
    .form-subtitle {
        font-size: 14px;
        margin-bottom: 24px;
    }
    
    .tabs {
        margin-bottom: 24px;
    }
    
    .tab {
        padding: 10px 16px;
        font-size: 14px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .split-right {
        padding: 32px 24px;
        min-height: 300px;
    }
    
    .branding-title {
        font-size: 24px;
    }
    
    .branding-description {
        font-size: 14px;
    }
    
    .features {
        gap: 20px;
    }
    
    .feature-text h3 {
        font-size: 16px;
    }
    
    .feature-text p {
        font-size: 13px;
    }
}
