:root {
--primary: #8a2be2;
--primary-dark: #6a1cb0;
--secondary: #00bfff;
--dark-bg: #121212;
--dark-surface: #1e1e1e;
--dark-card: #252525;
--text-primary: #ffffff;
--text-secondary: #b0b0b0;
--success: #2ed573;
--error: #ff4757;
}

* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
background: linear-gradient(135deg, var(--dark-bg) 0%, #1a1a2e 50%, #16213e 100%);
color: var(--text-primary);
min-height: 100vh;
display: flex;
align-items: center;
justify-content: center;
padding: 20px;
}

.container {
width: 100%;
max-width: 450px;
}

/* Header */
.header {
text-align: center;
margin-bottom: 40px;
}

.logo {
font-size: 2.5rem;
font-weight: 700;
margin-bottom: 10px;
background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
}

.tagline {
color: var(--text-secondary);
font-size: 1.1rem;
}

/* Auth Card */
.auth-card {
background: var(--dark-surface);
border-radius: 16px;
padding: 40px;
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
border: 1px solid rgba(255, 255, 255, 0.05);
position: relative;
overflow: hidden;
}

.auth-card::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
height: 4px;
background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
}

.auth-header {
text-align: center;
margin-bottom: 30px;
}

.auth-title {
font-size: 1.8rem;
margin-bottom: 8px;
color: var(--text-primary);
}

.auth-subtitle {
color: var(--text-secondary);
font-size: 1rem;
}

/* Forms */
.form-group {
margin-bottom: 20px;
}

label {
display: block;
margin-bottom: 8px;
color: var(--text-secondary);
font-weight: 500;
font-size: 0.9rem;
}

.input-wrapper {
position: relative;
}

.form-input {
width: 100%;
padding: 14px 16px;
background: var(--dark-card);
border: 1px solid rgba(255, 255, 255, 0.1);
border-radius: 8px;
color: var(--text-primary);
font-size: 1rem;
transition: all 0.3s ease;
}

.form-input:focus {
outline: none;
border-color: var(--primary);
box-shadow: 0 0 0 2px rgba(138, 43, 226, 0.2);
}

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

.input-icon {
position: absolute;
right: 16px;
top: 50%;
transform: translateY(-50%);
color: var(--text-secondary);
}

/* Buttons */
.btn {
display: inline-flex;
align-items: center;
justify-content: center;
gap: 10px;
width: 100%;
padding: 16px;
background: linear-gradient(90deg, var(--primary) 0%, var(--primary-dark) 100%);
color: white;
border: none;
border-radius: 8px;
font-size: 1rem;
font-weight: 600;
cursor: pointer;
transition: all 0.3s ease;
position: relative;
overflow: hidden;
}

.btn:hover {
transform: translateY(-2px);
box-shadow: 0 5px 15px rgba(138, 43, 226, 0.4);
}

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

.btn::after {
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;
}

.btn:hover::after {
left: 100%;
}

.btn-secondary {
background: transparent;
border: 1px solid var(--primary);
margin-top: 15px;
}

/* Toggle */
.auth-toggle {
text-align: center;
margin-top: 25px;
padding-top: 25px;
border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.toggle-text {
color: var(--text-secondary);
margin-bottom: 15px;
}

.toggle-link {
background: none;
border: none;
color: var(--secondary);
cursor: pointer;
font-weight: 600;
text-decoration: underline;
transition: color 0.3s ease;
}

.toggle-link:hover {
color: var(--primary);
}

/* Hidden state */
.hidden {
display: none;
}

/* Notification */
.notification {
position: fixed;
top: 20px;
right: 20px;
padding: 15px 20px;
border-radius: 8px;
color: white;
font-weight: 500;
z-index: 1000;
opacity: 0;
transform: translateX(100%);
transition: all 0.3s ease;
}

.notification.show {
opacity: 1;
transform: translateX(0);
}

.notification.success {
background-color: var(--success);
}

.notification.error {
background-color: var(--error);
}

/* Footer */
.footer {
text-align: center;
margin-top: 30px;
color: var(--text-secondary);
font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 480px) {
.auth-card {
padding: 30px 25px;
}

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