:root {
    --auth-bg: #0f172a;
    --auth-accent: #2563eb;
    --auth-accent-hover: #1d4ed8;
    --auth-card-bg: rgba(255, 255, 255, 0.03);
    --auth-card-border: rgba(255, 255, 255, 0.1);
    --auth-text: #f8fafc;
    --auth-text-muted: #94a3b8;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

body {
    background-color: var(--auth-bg);
    color: var(--auth-text);
    overflow: hidden;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Background Animation */
.auth-bg-shapes {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: -1;
    background: radial-gradient(circle at top right, #1e3a8a, transparent),
        radial-gradient(circle at bottom left, #1e1b4b, transparent);
}

.shape {
    position: absolute;
    filter: blur(80px);
    border-radius: 50%;
    opacity: 0.4;
    animation: float 20s infinite alternate ease-in-out;
}

.shape-1 {
    width: 400px;
    height: 400px;
    background: #2563eb;
    top: -100px;
    left: -100px;
}

.shape-2 {
    width: 300px;
    height: 300px;
    background: #6366f1;
    bottom: -50px;
    right: -50px;
    animation-delay: -5s;
}

.shape-3 {
    width: 250px;
    height: 250px;
    background: #3b82f6;
    top: 40%;
    right: 10%;
    animation-delay: -10s;
}

@keyframes float {
    from {
        transform: translate(0, 0) scale(1);
    }

    to {
        transform: translate(50px, 50px) scale(1.1);
    }
}

/* Auth Container */
.auth-container {
    width: 100%;
    max-width: 440px;
    padding: 2rem;
    z-index: 10;
}

.auth-card {
    background: var(--auth-card-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--auth-card-border);
    border-radius: 24px;
    padding: 3rem 2.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.auth-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.auth-logo {
    font-size: 2.25rem;
    font-weight: 900;
    letter-spacing: -0.05em;
    background: linear-gradient(135deg, #fff 0%, #94a3b8 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}

.auth-title {
    font-size: 1.125rem;
    color: var(--auth-text-muted);
    font-weight: 500;
}

/* Form Styling */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #cbd5e1;
    margin-bottom: 0.6rem;
}

.form-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--auth-card-border);
    border-radius: 14px;
    padding: 0.875rem 1.25rem;
    color: white;
    font-size: 1rem;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-input:focus {
    outline: none;
    border-color: var(--auth-accent);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.2);
}

.form-input::placeholder {
    color: #475569;
}

/* Password Visibility Toggle */
.password-wrapper {
    position: relative;
    width: 100%;
}

.password-toggle {
    position: absolute;
    right: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--auth-text-muted);
    cursor: pointer;
    font-size: 0.875rem;
    transition: color 0.2s;
    user-select: none;
}

.password-toggle:hover {
    color: white;
}

/* Button */
.auth-btn {
    width: 100%;
    background: var(--auth-accent);
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 14px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.auth-btn:hover {
    background: var(--auth-accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.4);
}

.auth-btn:active {
    transform: translateY(0);
}

/* Alerts */
.auth-alert {
    padding: 1rem;
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 2rem;
    border: 1px solid transparent;
}

.alert-error {
    background: rgba(239, 68, 68, 0.1);
    color: #f87171;
    border-color: rgba(239, 68, 68, 0.2);
}

.alert-success {
    background: rgba(34, 197, 94, 0.1);
    color: #4ade80;
    border-color: rgba(34, 197, 94, 0.2);
}

/* Footer Links */
.auth-footer {
    text-align: center;
    margin-top: 2rem;
    font-size: 0.875rem;
    color: var(--auth-text-muted);
}

.auth-footer a {
    color: white;
    text-decoration: none;
    font-weight: 700;
    transition: color 0.2s;
}

.auth-footer a:hover {
    color: var(--auth-accent);
}

/* Responsive */
@media (max-width: 480px) {
    .auth-container {
        padding: 1rem;
    }

    .auth-card {
        padding: 2.5rem 1.5rem;
    }
}