/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: #000000;
    background-image: 
        radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.15) 0%, transparent 60%),
        radial-gradient(circle at 70% 80%, rgba(255, 255, 255, 0.08) 0%, transparent 60%),
        radial-gradient(circle at 90% 10%, rgba(255, 255, 255, 0.05) 0%, transparent 40%),
        linear-gradient(135deg, #111111 0%, #000000 50%, #0a0a0a 100%);
    background-size: 100% 100%, 100% 100%, 100% 100%, 100% 100%;
    background-position: 0 0, 0 0, 0 0, 0 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow-x: hidden;
    overflow-y: auto;
}

/* Gradient lighting effects */
body::before,
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.1) 0%, transparent 100%);
    pointer-events: none;
    z-index: 1;
}

body::after {
    top: auto;
    bottom: 0;
    background: linear-gradient(0deg, rgba(255, 255, 255, 0.05) 0%, transparent 100%);
}

/* Container */
.container {
    width: 100%;
    max-width: 450px;
    padding: 20px;
    position: relative;
    z-index: 2;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Login Container */
.login-container {
    background: #ffffff;
    border: 2px solid #000000;
    padding: 40px 30px;
    box-shadow: 
        0 0 0 1px #000000,
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    max-height: 90vh;
    overflow-y: auto;
    width: 100%;
    position: relative;
}

.login-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, #ffffff 50%, transparent 100%);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.login-container:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 0 0 1px #000000,
        0 12px 40px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Logo Section */
.logo-section {
    text-align: center;
    margin-bottom: 30px;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 15px;
}

.logo-image {
    width: 60px;
    height: 60px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.logo h1 {
    font-size: 2rem;
    font-weight: 800;
    color: #000000;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.tagline {
    color: #666666;
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #000000;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group label i {
    color: #000000;
    font-size: 0.8rem;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #000000;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #ffffff;
    font-weight: 500;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #000000;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%23000000' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 16px;
    padding-right: 40px;
}

.form-help {
    display: block;
    margin-top: 4px;
    font-size: 0.75rem;
    color: #666666;
    font-weight: 400;
}

/* Password Input */
.password-input {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #000000;
    cursor: pointer;
    padding: 4px;
    transition: color 0.3s ease;
}

.toggle-password:hover {
    color: #666666;
}

/* Form Options */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    font-size: 0.85rem;
}

.checkbox-container {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: #000000;
    font-weight: 500;
}

.checkbox-container input[type="checkbox"] {
    width: auto;
    margin: 0;
    accent-color: #000000;
}

.forgot-password {
    color: #000000;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.8rem;
}

.forgot-password:hover {
    color: #666666;
    text-decoration: underline;
}

/* Buttons */
.login-btn, .register-btn {
    width: 100%;
    padding: 14px 20px;
    background: #000000;
    color: #ffffff;
    border: 2px solid #000000;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.login-btn:hover, .register-btn:hover {
    background: #ffffff;
    color: #000000;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.login-btn:active, .register-btn:active {
    transform: translateY(0);
}

/* Register Section */
.register-section, .back-to-login {
    text-align: center;
    font-size: 0.9rem;
    color: #000000;
}

.register-link, .login-link {
    color: #000000;
    text-decoration: none;
    font-weight: 700;
    transition: color 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.register-link:hover, .login-link:hover {
    color: #666666;
    text-decoration: underline;
}

/* Register Form */
.register-form {
    transition: all 0.3s ease;
}

.register-form h2 {
    text-align: center;
    color: #000000;
    margin-bottom: 25px;
    font-size: 1.5rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hidden {
    display: none;
    opacity: 0;
    transform: translateY(20px);
}

/* Loading Animation */
.loading {
    position: relative;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid transparent;
    border-top: 2px solid #000000;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Success/Error Messages */
.message {
    padding: 12px 16px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    border: 2px solid;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.message.success {
    background: #ffffff;
    color: #000000;
    border-color: #000000;
}

.message.error {
    background: #ffffff;
    color: #dc3545;
    border-color: #dc3545;
}

/* Responsive Design */
@media (max-width: 480px) {
    .container {
        padding: 15px;
        max-width: 100%;
    }
    
    .login-container {
        padding: 30px 20px;
        max-height: 95vh;
    }
    
    .logo h1 {
        font-size: 1.8rem;
    }
    
    .form-options {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
} 