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

/* Reset and Base Styles */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #6F4FF2;
    --secondary-color: #1B1B1B;
    --accent-color: #31D0AA;
    --text-color: #FFFFFF;
    --background-dark: #0B0B0F;
    --background-light: #151520;
    --gradient-1: linear-gradient(135deg, #6F4FF2 0%, #31D0AA 100%);
    --error-color: #FF5F5F;
    --input-bg: rgba(255, 255, 255, 0.05);
    --font-primary: 'Inter', sans-serif;
    --transition: all 0.3s ease;
}

body {
    font-family: var(--font-primary);
    background: var(--background-dark);
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
    position: relative;
}

/* Create a subtle gradient background pattern */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(111, 79, 242, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header Styles */
header {
    background: rgba(11, 11, 15, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem 0;
}

header h1 a {
    font-size: 1.8rem;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 700;
}

/* Login Form Section */
#login-form {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 80px);
    padding: 2rem 0;
}

#login-form .container {
    max-width: 450px;
    background: rgba(255, 255, 255, 0.03);
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

#login-form h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
}

.form-group input {
    width: 100%;
    padding: 1rem;
    background: var(--input-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: var(--text-color);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(111, 79, 242, 0.2);
}

.form-group input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

/* Button Styles */
.btn {
    width: 100%;
    padding: 1rem;
    background: var(--gradient-1);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(111, 79, 242, 0.3);
}

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

/* Error Message */
.error-message {
    color: var(--error-color);
    text-align: center;
    margin-top: 1rem;
    font-size: 0.9rem;
    min-height: 20px;
}

/* Loading Indicator */
.loading-indicator {
    text-align: center;
    margin-top: 1rem;
    color: var(--accent-color);
}

/* Sign Up Link */
#login-form p {
    text-align: center;
    margin-top: 1.5rem;
    color: rgba(255, 255, 255, 0.7);
}

#login-form a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

#login-form a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

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

#login-form .container {
    animation: fadeIn 0.6s ease-out;
}

/* Loading Animation */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loading-indicator::before {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid var(--accent-color);
    border-top-color: transparent;
    border-radius: 50%;
    margin-right: 8px;
    animation: spin 1s linear infinite;
}

/* Responsive Styles */
@media screen and (max-width: 768px) {
    #login-form .container {
        width: 95%;
        padding: 2rem 1.5rem;
    }

    #login-form h2 {
        font-size: 1.8rem;
    }

    .form-group input {
        padding: 0.8rem;
    }

    header h1 {
        font-size: 1.5rem;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--background-dark);
}

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

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-color);
}
