@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

* {
    box-sizing: border-box;
    font-family: 'Outfit', system-ui, sans-serif;
}

body {
    margin: 0;
    background-color: #050505;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #e5e7eb;
    overflow: hidden;
    position: relative;
}

/* Animated glowing background effect */
body::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(99,102,241,0.4) 0%, transparent 70%);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: pulseGlow 6s infinite alternate;
    z-index: 0;
}

@keyframes pulseGlow {
    0% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
    100% { transform: translate(-50%, -50%) scale(1.3); opacity: 0.8; }
}

.auth-wrapper {
    width: 100%;
    padding: 20px;
    display: flex;
    justify-content: center;
    z-index: 1; /* Keeps card above the glow */
}

.auth-card {
    width: 100%;
    max-width: 380px;
    padding: 40px 32px;
    border-radius: 24px;
    background: rgba(20, 20, 20, 0.4);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.auth-card h1 {
    text-align: center;
    margin: 0 0 36px 0;
    font-weight: 600;
    font-size: 26px;
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(255,255,255,0.1);
}

.field {
    position: relative;
    margin-bottom: 24px;
}

.field input {
    width: 100%;
    padding: 16px 20px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-size: 15px;
    outline: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.field label {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 15px;
    color: #6b7280;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.field input:focus,
.field input:not(:placeholder-shown) {
    border-color: #6366f1;
    background: rgba(10, 10, 15, 0.8);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.2);
}

.field input:focus + label,
.field input:not(:placeholder-shown) + label {
    top: -12px;
    left: 16px;
    font-size: 12px;
    color: #818cf8;
    background: #09090b;
    padding: 0 8px;
    border-radius: 4px;
}

button[type="submit"] {
    width: 100%;
    padding: 16px;
    border-radius: 16px;
    border: none;
    font-weight: 600;
    font-size: 16px;
    color: white;
    cursor: pointer;
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    box-shadow: 0 8px 20px rgba(79, 70, 229, 0.3);
    transition: all 0.3s ease;
}

button[type="submit"]:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(79, 70, 229, 0.5);
}

.error {
    background: rgba(239, 68, 68, 0.1);
    border-left: 4px solid #ef4444;
    color: #fca5a5;
    padding: 14px;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 24px;
}