:root {
    --primary: #fbbf24;
    --primary-light: #fcd34d;
    --primary-dark: #f59e0b;
    --bg-light: #ffffff;
    --bg-form: #f8fafc;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
}

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

body {
    background-color: var(--bg-light);
    height: 100vh;
    overflow: hidden;
}

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

/* Left Side: Brand (Desktop Only) */
.login-brand-side {
    flex: 1.2;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 4rem;
    position: relative;
    color: white;
}

.login-brand-side::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 20% 30%, rgba(251, 191, 36, 0.15) 0%, transparent 50%);
    z-index: 1;
}

.brand-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 500px;
}

.brand-logo-container {
    width: 140px;
    height: 140px;
    background: white;
    border-radius: 35px;
    padding: 20px;
    margin: 0 auto 2rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.brand-logo-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.brand-content h1 {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    margin-bottom: 1rem;
    color: var(--primary);
}

.brand-content p {
    font-size: 1.1rem;
    color: #94a3b8;
    line-height: 1.6;
}

.brand-footer {
    position: absolute;
    bottom: 2rem;
    font-size: 0.85rem;
    color: #64748b;
}

/* Right Side: Form */
.login-form-side {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: white;
    min-height: 100vh;
    overflow-y: auto;
}

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

.login-card {
    padding: 1rem;
}

/* Figma Style Header */
.figma-logo-header {
    text-align: center;
    margin-bottom: 2rem;
}

.figma-logo-header img {
    width: 120px;
    height: 120px;
    object-fit: contain;
    margin-bottom: 1rem;
}

.brand-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 0.5rem;
}

.figma-logo-header.d-mobile-only {
    display: none;
}

.login-header {
    margin-bottom: 2.5rem;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1.5rem;
}

.login-header h2 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 0.5rem;
}

.login-header p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-main);
}

.input-box {
    position: relative;
}

.input-box i,
.input-box svg {
    position: absolute;
    left: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.form-control {
    width: 100%;
    padding: 1.125rem 1rem 1.125rem 3.5rem;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    font-size: 1rem;
    color: var(--text-main);
    transition: all 0.3s ease;
    outline: none;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(251, 191, 36, 0.1);
}

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

.remember-check {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
    color: var(--text-muted);
    cursor: pointer;
    user-select: none;
    transition: color 0.3s ease;
}

.remember-check:hover {
    color: var(--text-main);
}

.remember-check input {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    background: #f8fafc;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    margin: 0;
}

.remember-check input:checked {
    background: var(--primary);
    border-color: var(--primary);
}

.remember-check input:checked::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 1px;
    width: 5px;
    height: 10px;
    border: solid #000;
    border-width: 0 2.5px 2.5px 0;
    transform: rotate(45deg);
}

.remember-check input:focus {
    box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.2);
}

.forgot-link {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    text-decoration: none;
}

.forgot-link:hover {
    color: var(--primary-dark);
}

.login-button.figma-button {
    width: 100%;
    padding: 1.125rem;
    background: var(--primary);
    color: #000;
    border: none;
    border-radius: 16px;
    font-size: 1rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1rem;
}

.login-button.figma-button:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -5px rgba(251, 191, 36, 0.4);
}

.secondary-figma-button {
    display: block;
    width: 100%;
    padding: 1.125rem;
    background: white;
    color: #000;
    border: 1px solid var(--primary);
    border-radius: 16px;
    font-size: 1rem;
    font-weight: 800;
    text-align: center;
    text-decoration: none;
    margin-top: 1.5rem;
    transition: all 0.3s ease;
}

.secondary-figma-button:hover {
    background: var(--primary);
    transform: translateY(-2px);
}

.error-alert {
    background: #fef2f2;
    border: 1px solid #fee2e2;
    padding: 1rem;
    border-radius: 12px;
    color: #ef4444;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Responsive */
@media (max-width: 1024px) {
    body {
        overflow-y: auto;
        height: auto;
    }

    .mobile-logo, .figma-logo-header.d-mobile-only {
        display: block;
    }

    .login-brand-side {
        display: none;
    }

    .login-form-side {
        padding: 1.5rem;
        background-color: #fcfcfd;
    }

    .login-card {
        background: white;
        padding: 3rem 1.5rem;
        border-radius: 32px;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    }
}

@media (max-width: 480px) {
    .login-form-side {
        padding: 0.75rem;
    }

    .login-card {
        padding: 2.5rem 1rem;
        border-radius: 24px;
    }

    .brand-title {
        font-size: 1.5rem;
    }

    .options-row {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
}