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

:root {
    --dark-bg: #1a1a1a;
    --darker-bg: #2a2a2a;
    --blue-accent: #9ed0f8;
    --text-primary: #ffffff;
    --text-secondary: #999999;
    --card-bg: #2a2a2a;
    --hover-bg: #333333;
}

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

body {
    font-family: 'Inter', sans-serif;
    background: var(--dark-bg);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Login Container */
.login-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    max-width: 1200px;
    min-height: 600px;
    background: var(--darker-bg);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

/* Left Side - Branding */
.login-left {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    position: relative;
}

.login-left::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.branding {
    text-align: center;
    z-index: 1;
}

.brand-logo {
    height: 80px;
    width: auto;
    margin-bottom: 1.5rem;
    object-fit: contain;
}

.brand-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--blue-accent);
    margin-bottom: 0.75rem;
}

.brand-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    font-weight: 400;
}

/* Right Side - Login Form */
.login-right {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    background: var(--dark-bg);
}

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

.form-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.form-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

/* Error Message */
.error-message {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 10px;
    color: #ef4444;
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
    animation: slideDown 0.3s ease;
}

.error-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Form Styles */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-input {
    width: 100%;
    padding: 0.875rem 1rem;
    background: var(--card-bg);
    border: 1px solid #333;
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--blue-accent);
    background: var(--hover-bg);
}

.form-input::placeholder {
    color: #666;
}

/* Form Options */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: -0.5rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.forgot-link {
    font-size: 0.875rem;
    color: var(--blue-accent);
    text-decoration: none;
    transition: all 0.3s ease;
}

.forgot-link:hover {
    text-decoration: underline;
}

/* Login Button */
.btn-login {
    width: 100%;
    padding: 1rem;
    background: var(--blue-accent);
    color: #000000;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
    margin-top: 0.5rem;
}

.btn-login:hover {
    background: #b3ddf9;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(158, 208, 248, 0.3);
}

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

/* Signup Prompt */
.signup-prompt {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #333;
}

.signup-prompt p {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.signup-link {
    color: var(--blue-accent);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.signup-link:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 968px) {
    .login-container {
        grid-template-columns: 1fr;
        margin: 1rem;
    }

    .login-left {
        padding: 2rem;
        min-height: 200px;
    }

    .brand-logo {
        height: 60px;
    }

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

    .brand-subtitle {
        font-size: 1rem;
    }

    .login-right {
        padding: 2rem;
    }
}

@media (max-width: 480px) {
    .login-container {
        border-radius: 16px;
        margin: 0.5rem;
        min-height: auto;
    }

    .login-left {
        padding: 1.5rem 1rem;
    }

    .login-right {
        padding: 1.5rem 1rem;
    }

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

    .form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    backdrop-filter: blur(4px);
}

.loading-overlay.active {
    display: flex;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(158, 208, 248, 0.3);
    border-radius: 50%;
    border-top-color: var(--blue-accent);
    animation: spin 1s ease-in-out infinite;
}

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

/* Button Loading State */
.btn-loading {
    position: relative;
    color: transparent !important;
    pointer-events: none;
}

.btn-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin-top: -10px;
    margin-left: -10px;
    border: 2px solid rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    border-top-color: #000;
    animation: spin 1s ease-in-out infinite;
}