@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
    --font-primary: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --primary-gradient: linear-gradient(135deg, #4f46e5 0%, #7c3aed 50%, #2563eb 100%);
    --accent-gradient: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    --bg-dark: #0f172a;
    --card-bg: rgba(255, 255, 255, 0.88);
    --card-border: rgba(255, 255, 255, 0.6);
    --glass-shadow: 0 20px 50px rgba(0, 0, 0, 0.12), 0 10px 25px rgba(79, 70, 229, 0.08);
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --input-bg: #f8fafc;
    --input-border: #e2e8f0;
    --input-focus-border: #6366f1;
    --radius-lg: 24px;
    --radius-md: 14px;
    --radius-sm: 10px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body, html {
    height: 100%;
    font-family: var(--font-primary);
    background-color: var(--bg-dark);
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
}

/* Background Animated Canvas / Mesh */
.sks-login-wrapper {
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at 10% 20%, rgba(99, 102, 241, 0.25) 0%, transparent 40%),
                radial-gradient(circle at 90% 80%, rgba(139, 92, 246, 0.25) 0%, transparent 40%),
                radial-gradient(circle at 50% 50%, rgba(37, 99, 235, 0.15) 0%, transparent 60%),
                linear-gradient(135deg, #090d16 0%, #0f172a 50%, #1e1b4b 100%);
    padding: 24px;
}

/* Dynamic Ambient Glow Orbs */
.sks-glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    z-index: 0;
    animation: pulseGlow 10s infinite alternate cubic-bezier(0.4, 0, 0.6, 1);
}

.sks-glow-orb-1 {
    width: 380px;
    height: 380px;
    background: rgba(79, 70, 229, 0.35);
    top: -50px;
    left: -50px;
}

.sks-glow-orb-2 {
    width: 450px;
    height: 450px;
    background: rgba(147, 51, 234, 0.3);
    bottom: -100px;
    right: -100px;
    animation-delay: -5s;
}

@keyframes pulseGlow {
    0% { transform: scale(1) translate(0, 0); opacity: 0.7; }
    50% { transform: scale(1.15) translate(30px, -20px); opacity: 0.9; }
    100% { transform: scale(0.9) translate(-20px, 30px); opacity: 0.6; }
}

/* Main Container Box */
.sks-login-card-container {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 1040px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--radius-lg);
    box-shadow: var(--glass-shadow);
    display: flex;
    overflow: hidden;
    animation: slideUpFade 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUpFade {
    from { opacity: 0; transform: translateY(30px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Left Side - Brand Showcase */
.sks-brand-section {
    flex: 1.1;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.92) 0%, rgba(124, 58, 237, 0.92) 100%);
    position: relative;
    padding: 48px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: #ffffff;
    overflow: hidden;
}

.sks-brand-bg-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.12;
    background-image: radial-gradient(#ffffff 1px, transparent 1px);
    background-size: 20px 20px;
}

.sks-brand-header {
    position: relative;
    z-index: 2;
}

.sks-brand-logo-img {
    height: 52px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.15));
}

.sks-brand-content {
    position: relative;
    z-index: 2;
    margin: 40px 0;
}

.sks-brand-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
}

.sks-brand-title {
    font-size: 32px;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.sks-brand-subtitle {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
    font-weight: 400;
    max-width: 380px;
}

.sks-brand-features {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 24px;
}

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

.sks-feature-icon {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
}

.sks-brand-footer {
    position: relative;
    z-index: 2;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding-top: 20px;
}

.sks-brand-footer a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.sks-brand-footer a:hover {
    text-decoration: underline;
    opacity: 0.9;
}

/* Right Side - Form Section */
.sks-form-section {
    flex: 1;
    padding: 48px 44px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #ffffff;
}

.sks-form-header {
    margin-bottom: 32px;
}

.sks-form-title {
    font-size: 26px;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.5px;
    margin-bottom: 6px;
}

.sks-form-subtext {
    font-size: 14px;
    color: var(--text-secondary);
}

.sks-input-group {
    margin-bottom: 20px;
    position: relative;
}

.sks-input-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.sks-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.sks-input-icon {
    position: absolute;
    left: 16px;
    color: var(--text-muted);
    font-size: 18px;
    transition: var(--transition);
    pointer-events: none;
}

.sks-input-field {
    width: 100%;
    height: 48px;
    padding: 0 16px 0 46px;
    border-radius: var(--radius-md);
    border: 1px solid var(--input-border);
    background: var(--input-bg);
    font-size: 14px;
    font-family: var(--font-primary);
    color: var(--text-primary);
    transition: var(--transition);
    outline: none;
}

.sks-input-field:focus {
    background: #ffffff;
    border-color: var(--input-focus-border);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.12);
}

.sks-input-field:focus + .sks-input-icon,
.sks-input-wrapper:focus-within .sks-input-icon {
    color: var(--input-focus-border);
}

/* Password Toggle Icon */
.sks-pass-toggle {
    position: absolute;
    right: 14px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 18px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    transition: var(--transition);
}

.sks-pass-toggle:hover {
    color: var(--text-primary);
    background: rgba(0, 0, 0, 0.05);
}

/* Options Row (Remember & Forgot) */
.sks-form-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.sks-checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    user-select: none;
}

.sks-checkbox-label input[type="checkbox"] {
    width: 17px;
    height: 17px;
    accent-color: #4f46e5;
    border-radius: 4px;
    cursor: pointer;
}

.sks-forgot-link {
    font-size: 13px;
    font-weight: 600;
    color: #4f46e5;
    text-decoration: none;
    transition: var(--transition);
}

.sks-forgot-link:hover {
    color: #3730a3;
    text-decoration: underline;
}

/* Submit Button */
.sks-submit-btn {
    width: 100%;
    height: 50px;
    background: var(--primary-gradient);
    border: none;
    border-radius: var(--radius-md);
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    font-family: var(--font-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 10px 25px rgba(79, 70, 229, 0.35);
    transition: var(--transition);
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
}

.sks-submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
    transition: 0.5s;
}

.sks-submit-btn:hover::before {
    left: 100%;
}

.sks-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(79, 70, 229, 0.45);
}

.sks-submit-btn:active {
    transform: translateY(0);
}

/* Register / Account prompt */
.sks-form-footer {
    text-center;
    padding-top: 16px;
    border-top: 1px solid var(--input-border);
    font-size: 13px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.sks-register-link {
    font-weight: 700;
    color: #4f46e5;
    text-decoration: none;
    transition: var(--transition);
}

.sks-register-link:hover {
    color: #3730a3;
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 900px) {
    .sks-login-card-container {
        flex-direction: column;
        max-width: 480px;
    }

    .sks-brand-section {
        padding: 32px 28px;
    }

    .sks-brand-content {
        margin: 20px 0;
    }

    .sks-brand-title {
        font-size: 24px;
    }

    .sks-form-section {
        padding: 32px 28px;
    }
}

@media (max-width: 480px) {
    .sks-login-wrapper {
        padding: 12px;
    }

    .sks-form-section {
        padding: 24px 20px;
    }

    .sks-brand-section {
        padding: 24px 20px;
    }
}
