/* Variables (Theme Colors) */
:root {
    --bg-dark: #0a192f;
    --card-bg: #112240;
    --text-main: #ccd6f6;
    --text-highlight: #64ffda; /* Neon Teal */
    --white: #ffffff;
    --input-bg: rgba(255, 255, 255, 0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background-color: var(--bg-dark);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    overflow: hidden;
    position: relative;
}

/* Background Abstract decoration */
body::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(100, 255, 218, 0.1) 0%, transparent 70%);
    top: -200px;
    right: -200px;
    z-index: -1;
}

/* --- Card Style --- */
.auth-container {
    width: 100%;
    padding: 20px;
    display: flex;
    justify-content: center;
}

.auth-card {
    background: var(--card-bg);
    width: 400px;
    padding: 50px 40px;
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(100, 255, 218, 0.1);
    animation: slideUp 0.8s ease forwards;
    opacity: 0;
    transform: translateY(30px);
}

@keyframes slideUp {
    to { opacity: 1; transform: translateY(0); }
}

/* --- Header --- */
.auth-header h2 {
    color: var(--white);
    font-size: 2rem;
    margin-bottom: 10px;
}

.auth-header p {
    color: #8892b0;
    font-size: 0.9rem;
    margin-bottom: 40px;
}

/* --- Floating Input Fields --- */
.input-group {
    position: relative;
    margin-bottom: 35px;
}

.input-group input {
    width: 100%;
    padding: 10px 0;
    font-size: 1rem;
    color: var(--white);
    border: none;
    border-bottom: 1px solid #233554;
    outline: none;
    background: transparent;
    transition: 0.3s;
}

.input-group label {
    position: absolute;
    top: 10px;
    left: 0;
    color: #8892b0;
    font-size: 1rem;
    pointer-events: none;
    transition: 0.3s ease all;
}

/* Animation Logic: Jab input focus ho ya usme text ho */
.input-group input:focus ~ label,
.input-group input:valid ~ label {
    top: -20px;
    font-size: 0.85rem;
    color: var(--text-highlight);
}

.input-group input:focus {
    border-bottom: 1px solid var(--text-highlight);
}

/* --- Actions (Forgot Pass) --- */
.actions {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 30px;
}

.forgot-pass {
    color: var(--text-highlight);
    font-size: 0.85rem;
    text-decoration: none;
}

/* --- Animated Button --- */
.btn-auth {
    width: 100%;
    height: 50px;
    background: transparent;
    border: 2px solid var(--text-highlight);
    color: var(--text-highlight);
    font-size: 1rem;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: 0.3s;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-auth:hover {
    background: rgba(100, 255, 218, 0.1);
    box-shadow: 0 0 20px rgba(100, 255, 218, 0.2);
}

/* Loading & Success States */
.btn-auth.loading {
    color: transparent;
    pointer-events: none;
}

.btn-auth.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid var(--text-highlight);
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.btn-auth.success {
    background: var(--text-highlight);
    border-color: var(--text-highlight);
    color: var(--bg-dark);
}

.btn-auth.success::after {
    content: '✓'; /* Checkmark */
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--bg-dark);
    position: absolute;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* --- Footer --- */
.auth-footer {
    margin-top: 30px;
    text-align: center;
    font-size: 0.9rem;
    color: #8892b0;
}

.auth-footer a {
    color: var(--text-highlight);
    text-decoration: none;
    font-weight: 600;
}

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