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

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

body {
    font-family: 'Inter', sans-serif;
    background: #0a0a0f;
    color: #ffffff;
    min-height: 100vh;
    background-image: 
        radial-gradient(circle at 20% 80%, #1a1a2e 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, #16213e 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, #0f3460 0%, transparent 50%);
    position: relative;
    display: flex;
    flex-direction: column;
}

.main-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 0;
}

.back-button {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(30, 41, 59, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(51, 65, 85, 0.3);
    border-radius: 12px;
    padding: 12px 20px;
    color: #00d4ff;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 1000;
}

.back-button:hover {
    background: #00d4ff;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 212, 255, 0.3);
}

.back-button::before {
    content: "← ";
    margin-right: 5px;
}

.container {
    background: rgba(30, 41, 59, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(51, 65, 85, 0.3);
    padding: 2.5rem;
    border-radius: 1.5rem;
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(0, 212, 255, 0.1);
    width: 100%;
    max-width: 420px;
}

.logo {
    text-align: center;
    margin-bottom: 2rem;
}

.logo h1 {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #00d4ff, #ff6b35, #ffd700);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.logo p {
    color: #94a3b8;
    margin-top: 0.5rem;
    font-size: 1rem;
    font-weight: 400;
}

.form-container {
    display: none;
}

.form-container.active {
    display: block;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #e2e8f0;
    font-weight: 500;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-group input {
    width: 100%;
    padding: 1rem;
    background: #1e293b;
    border: 2px solid #334155;
    border-radius: 0.75rem;
    color: #ffffff;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.2s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #00d4ff;
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
}

.form-group input::placeholder {
    color: #64748b;
}

.btn {
    width: 100%;
    padding: 1rem;
    border: none;
    border-radius: 0.75rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.btn-primary {
    background: linear-gradient(135deg, #00d4ff, #0891b2);
    color: white;
    box-shadow: 0 4px 12px rgba(0, 212, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 212, 255, 0.4);
}

.btn-secondary {
    background: transparent;
    color: #00d4ff;
    border: 2px solid #00d4ff;
}

.btn-secondary:hover {
    background: #00d4ff;
    color: #0a0a0f;
}

.toggle-form {
    text-align: center;
    margin-top: 1rem;
}

.toggle-form button {
    background: none;
    border: none;
    color: #00d4ff;
    cursor: pointer;
    text-decoration: underline;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.toggle-form button:hover {
    color: #0891b2;
}

.message {
    padding: 1rem;
    border-radius: 0.75rem;
    margin-bottom: 1rem;
    text-align: center;
    font-weight: 500;
    border: 1px solid;
}

.message.success {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
    border-color: rgba(34, 197, 94, 0.3);
}

.message.error {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.3);
}

.password-reset-container {
    display: none;
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(239, 68, 68, 0.05);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 0.75rem;
    text-align: center;
}

.password-reset-container.active {
    display: block;
}

.password-reset-container p {
    color: #ef4444;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.btn-reset {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.btn-reset:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(239, 68, 68, 0.4);
}

.loading {
    display: none;
    text-align: center;
    color: #94a3b8;
}

.loading.active {
    display: block;
}

.spinner {
    border: 3px solid #334155;
    border-top: 3px solid #00d4ff;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        margin: 1rem;
        padding: 2rem;
        max-width: none;
    }

    .logo h1 {
        font-size: 2rem;
    }

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

    .btn {
        padding: 0.875rem;
    }
}

@media (max-width: 480px) {
    .container {
        margin: 0.5rem;
        padding: 1.5rem;
    }

    .logo h1 {
        font-size: 1.75rem;
    }

    .logo p {
        font-size: 0.875rem;
    }

    .back-button {
        top: 15px;
        right: 15px;
        padding: 10px 15px;
        font-size: 0.8rem;
    }
}

/* OAuth Container */
.oauth-container {
    margin-bottom: 20px;
}

.btn-google {
    width: 100%;
    background: white;
    color: #333;
    border: 1px solid #dadce0;
    padding: 12px 16px;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 0.95rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.btn-google:hover {
    background: #f8f9fa;
    border-color: #c1c7cd;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-google:active {
    transform: translateY(0);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.btn-google svg {
    flex-shrink: 0;
}

.btn-discord {
    width: 100%;
    background: #5865F2;
    color: white;
    border: 1px solid #4752C4;
    padding: 12px 16px;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 0.95rem;
    box-shadow: 0 1px 3px rgba(88, 101, 242, 0.3);
    margin-top: 10px;
}

.btn-discord:hover {
    background: #4752C4;
    border-color: #3C45A5;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(88, 101, 242, 0.4);
}

.btn-discord:active {
    transform: translateY(0);
    box-shadow: 0 1px 3px rgba(88, 101, 242, 0.3);
}

.btn-discord svg {
    flex-shrink: 0;
}

/* Divider */
.divider {
    position: relative;
    text-align: center;
    margin: 20px 0;
    color: #64748b;
    font-size: 0.9rem;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, #334155, transparent);
}

.divider span {
    background: #0a0a0f;
    padding: 0 16px;
    position: relative;
    z-index: 1;
}

/* Footer Styles */
.footer {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-top: 1px solid #2a2a3e;
    margin-top: 3rem;
    padding: 2rem 0;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.footer-link {
    color: #8892b0;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.footer-link:hover {
    color: #00d4ff;
}

.cookie-settings-btn {
    background: none !important;
    border: none !important;
    padding: 0 !important;
    font-size: 0.9rem !important;
}

.footer-text {
    color: #6b7280;
    font-size: 0.85rem;
}

.footer-text p {
    margin: 0;
}

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1.5rem;
    }
}
