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

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

:root {
    --bg-primary: #000000;
    --bg-card: #09090B;
    --bg-elevated: #0f1015;
    --border-color: #16181f;
    --border-subtle: #0e1016;
    --text-primary: #ffffff;
    --text-secondary: #8a8a8e;
    --text-muted: #555558;
    --success: #44CE1B;
    --danger: #E51F1F;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 14px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-primary);
    min-height: 100vh;
    color: var(--text-primary);
    line-height: 1.5;
}

/* ==================== LOGIN PAGE LAYOUT ==================== */

.login-page {
    display: flex;
    min-height: 100vh;
    position: relative;
}

.login-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 400px;
    height: 100%;
    background: radial-gradient(ellipse at center, rgba(40, 70, 160, 0.08) 0%, rgba(30, 60, 140, 0.04) 40%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.login-page::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 300px;
    height: 100%;
    background: radial-gradient(ellipse at left center, rgba(40, 70, 160, 0.06) 0%, rgba(30, 60, 140, 0.03) 40%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* ==================== LEFT PANEL ==================== */

.login-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 40px 60px 40px 160px;
    position: relative;
    overflow: hidden;
}


.login-left-content {
    position: relative;
    z-index: 1;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.login-logo {
    position: absolute;
    top: 36px;
    left: 40px;
    z-index: 2;
}

.login-logo img {
    height: 100px;
    object-fit: contain;
}

/* Hero Section */
.login-hero {
    margin-bottom: 48px;
}

.login-hero h1 {
    font-size: 32px;
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.5px;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.hero-accent {
    color: var(--text-secondary);
}

.hero-subtitle {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.7;
    max-width: 420px;
    font-weight: 400;
}

/* Feature Grid */
.feature-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    max-width: 400px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px 22px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    transition: border-color 0.2s;
}

.feature-card:hover {
    border-color: #1e2028;
}

.feature-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.3px;
}

.feature-label {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 400;
}

/* Footer */
.login-footer {
    position: relative;
    z-index: 1;
    padding-top: 32px;
}

.login-footer span {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 400;
}

/* ==================== RIGHT PANEL ==================== */

.login-right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 200px 40px 60px;
    max-width: 600px;
}

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

.login-form-header {
    margin-bottom: 36px;
}

.login-form-header h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.5px;
    margin-bottom: 8px;
}

.login-form-header p {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 400;
}

/* Error Message */
.login-error {
    background: var(--bg-card);
    border: 1px solid rgba(185, 61, 61, 0.3);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    margin-bottom: 20px;
    font-size: 13px;
    color: var(--danger);
}

/* Form Groups */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.input-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 0 16px;
    height: 48px;
    transition: border-color 0.2s;
}

.input-wrapper:focus-within {
    border-color: #2a2c34;
}

.input-icon {
    flex-shrink: 0;
    color: var(--text-muted);
}

.input-wrapper input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 14px;
    height: 100%;
}

.input-wrapper input::placeholder {
    color: var(--text-muted);
}

/* Password Toggle */
.toggle-password {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    padding: 0;
    transition: color 0.2s;
}

.toggle-password:hover {
    color: var(--text-secondary);
}

/* Sign In Button */
.login-btn {
    width: 100%;
    height: 48px;
    margin-top: 8px;
    background: var(--text-primary);
    color: #000;
    border: none;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s;
}

.login-btn:hover {
    opacity: 0.9;
}

.login-btn:active {
    opacity: 0.8;
}

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

/* ==================== SCROLLBAR ==================== */

::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

/* ==================== MOBILE-ONLY ELEMENTS (hidden on desktop) ==================== */

.mobile-login-logo {
    display: none;
}

.mobile-login-footer {
    display: none;
}

/* ==================== RESPONSIVE ==================== */

@media (max-width: 960px) {
    .login-page {
        flex-direction: column;
    }

    /* Hide the entire left panel on mobile */
    .login-left {
        display: none;
    }

    /* Hide the desktop logo (it's inside login-left anyway, but be explicit) */
    .login-logo {
        display: none;
    }

    .login-footer {
        display: none;
    }

    /* Right panel becomes full screen */
    .login-right {
        flex: 1;
        max-width: 100%;
        padding: 0;
        align-items: flex-start;
        justify-content: flex-start;
        min-height: 100vh;
    }

    .login-form-wrapper {
        max-width: 100%;
        width: 100%;
        padding: 24px 24px 32px;
        display: flex;
        flex-direction: column;
        min-height: 100vh;
    }

    /* Mobile logo - top-left, large */
    .mobile-login-logo {
        display: block;
        margin-bottom: 48px;
    }

    .mobile-login-logo img {
        height: 80px;
        object-fit: contain;
    }

    /* Center the form header on mobile */
    .login-form-header {
        text-align: center;
        margin-bottom: 32px;
    }

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

    .login-form-header p {
        font-size: 13px;
    }

    /* Mobile footer at bottom */
    .mobile-login-footer {
        display: block;
        margin-top: auto;
        padding-top: 40px;
        text-align: center;
    }

    .mobile-login-footer span {
        font-size: 11px;
        color: var(--text-muted);
        font-weight: 400;
        text-transform: uppercase;
        letter-spacing: 1px;
    }

    /* Remove gradient pseudo-elements on mobile */
    .login-page::before,
    .login-page::after {
        display: none;
    }
}
