:root {
    --bg-primary: #0a0a0a;
    --bg-secondary: rgba(26, 26, 26, 0.8);
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --accent-primary: #dc2626;
    --accent-secondary: #b91c1c;
    --border-color: rgba(51, 51, 51, 0.6);
    --input-bg: rgba(42, 42, 42, 0.8);
    --card-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.8), 0 10px 10px -5px rgba(0, 0, 0, 0.6);
    --blur-bg: rgba(0, 0, 0, 0.3);
    --social-btn-bg: rgba(42, 42, 42, 0.8);
    --social-btn-hover: rgba(64, 64, 64, 0.8);
}

[data-theme="light"] {
    --bg-primary: #f8fafc;
    --bg-secondary: #ffffff;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --accent-primary: #3b82f6;
    --accent-secondary: #1d4ed8;
    --border-color: #e2e8f0;
    --input-bg: #ffffff;
    --card-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --blur-bg: rgba(255, 255, 255, 0.1);
    --social-btn-bg: #f1f5f9;
    --social-btn-hover: #e2e8f0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    transition: all 0.3s ease;
    overflow-x: hidden;
}

.container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 20px;
}

.blur-element {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: float 6s ease-in-out infinite;
}

.blur-1 {
    width: 300px;
    height: 300px;
    background: linear-gradient(45deg, #dc2626, #991b1b);
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.blur-2 {
    width: 250px;
    height: 250px;
    background: linear-gradient(45deg, #b91c1c, #7f1d1d);
    top: 60%;
    right: 15%;
    animation-delay: 2s;
}

.blur-3 {
    width: 200px;
    height: 200px;
    background: linear-gradient(45deg, #991b1b, #450a0a);
    bottom: 20%;
    left: 20%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    33% {
        transform: translateY(-20px) rotate(120deg);
    }
    66% {
        transform: translateY(10px) rotate(240deg);
    }
}

.auth-container {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 420px;
}

.auth-card {
    background: var(--bg-secondary);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 40px;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
    animation: slideUp 0.6s ease-out;
}

.auth-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.4);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card-header {
    text-align: center;
    margin-bottom: 32px;
}

.card-header h1 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.card-header p {
    color: var(--text-secondary);
    font-size: 16px;
}

.auth-form {
    margin-bottom: 24px;
}

.form-group {
    margin-bottom: 20px;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper input {
    width: 100%;
    padding: 16px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    background: var(--input-bg);
    color: var(--text-primary);
    font-size: 16px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.input-wrapper input:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.input-focus-border {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 12px;
    pointer-events: none;
    transition: all 0.3s ease;
}

.input-wrapper input:focus ~ .input-focus-border {
    border: 2px solid var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.toggle-password {
    position: absolute;
    right: 16px;
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-size: 16px;
}

.toggle-password:hover {
    color: var(--accent-primary);
    background: rgba(220, 38, 38, 0.1);
}

.submit-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.submit-btn:hover::before {
    left: 100%;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(220, 38, 38, 0.4);
}

.submit-btn:active {
    transform: translateY(0);
}

.auth-footer {
    text-align: center;
    color: var(--text-secondary);
    font-size: 14px;
}

.link-btn {
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.link-btn:hover {
    color: var(--accent-secondary);
}

@media (max-width: 480px) {
    .container {
        padding: 16px;
    }
    
    .auth-card {
        padding: 24px;
        border-radius: 20px;
    }
    
    .card-header h1 {
        font-size: 24px;
    }
}

.submit-btn.loading {
    pointer-events: none;
}

.submit-btn.loading span {
    opacity: 0;
}

.submit-btn.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

input:focus,
button:focus {
    outline: 2px solid var(--accent-primary);
    outline-offset: 2px;
}

* {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
} 