@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;800&display=swap');

:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --secondary: #ec4899;
    --glass-bg: rgba(255, 255, 255, 0.75);
    --glass-border: rgba(255, 255, 255, 0.8);
    --text-main: #1f2937;
    --text-light: #6b7280;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Poppins', sans-serif; }

body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e0c3fc 0%, #8ec5fc 100%);
    overflow: hidden; /* For background shapes */
    position: relative;
}

/* --- PLAYFUL BACKGROUND SHAPES --- */
.shape {
    position: absolute;
    filter: blur(50px);
    z-index: -1;
    animation: float 10s infinite ease-in-out alternate;
}
.shape-1 {
    top: -10%; left: -10%; width: 50vw; height: 50vw;
    background: radial-gradient(circle, #a78bfa 0%, transparent 70%);
    animation-delay: 0s;
}
.shape-2 {
    bottom: -10%; right: -10%; width: 40vw; height: 40vw;
    background: radial-gradient(circle, #f472b6 0%, transparent 70%);
    animation-delay: -5s;
}
.shape-3 {
    top: 40%; left: 40%; width: 30vw; height: 30vw;
    background: radial-gradient(circle, #60a5fa 0%, transparent 70%);
    animation-duration: 15s;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(20px, 40px) scale(1.1); }
}

/* --- GLASS CARD --- */
.auth-container {
    width: 100%;
    max-width: 420px;
    padding: 20px;
    position: relative;
    z-index: 10;
}

.auth-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    padding: 40px 30px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
    text-align: center;
    transform: translateY(0);
    transition: transform 0.3s;
}

.auth-card:hover {
    transform: translateY(-5px);
}

/* --- TYPOGRAPHY & LOGO --- */
.logo {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 5px;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -1px;
}

.subtitle {
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 30px;
}

/* --- FORMS --- */
.form-group {
    margin-bottom: 20px;
    position: relative;
    text-align: left;
}

.form-input {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid transparent;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    color: var(--text-main);
    transition: all 0.3s ease;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
    transform: scale(1.02);
}

.form-input::placeholder {
    color: #9ca3af;
}

/* --- BUTTONS --- */
.btn-primary {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    border: none;
    border-radius: 15px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.2);
    position: relative;
    overflow: hidden;
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.2), transparent);
    transform: translateX(-100%);
    transition: 0.5s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover::after {
    transform: translateX(100%);
}

.btn-primary:active {
    transform: scale(0.98);
}

/* --- ALERTS --- */
.alert {
    padding: 12px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 20px;
    animation: shake 0.5s ease-in-out;
}
.alert-error {
    background: #fef2f2;
    color: #ef4444;
    border: 1px solid #fee2e2;
}
.alert-success {
    background: #f0fdf4;
    color: #10b981;
    border: 1px solid #dcfce7;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* --- LINKS --- */
.auth-footer {
    margin-top: 25px;
    font-size: 13px;
    color: var(--text-light);
}

.link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
    position: relative;
}

.link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: var(--secondary);
    transition: width 0.3s;
}

.link:hover::after {
    width: 100%;
}