/* ───────── RESET & VARIABLES ───────── */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --bg: #050505;
    --surface: rgba(15, 15, 18, 0.7);
    --border: rgba(255, 255, 255, 0.1);
    --accent: #10b981;
    --accent-glow: rgba(16, 185, 129, 0.5);
    --accent-secondary: #059669;
    --text: #ffffff;
    --text-muted: #9ca3af;
    --radius-lg: 24px;
    --radius-md: 12px;
    --font-main: 'Inter', system-ui, -apple-system, sans-serif;
    --font-display: 'Outfit', sans-serif;
}

h1 {
    position: absolute;
    left: -9999px;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg);
    background-image: 
        radial-gradient(circle at 0% 0%, rgba(16, 185, 129, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 100% 100%, rgba(5, 150, 105, 0.12) 0%, transparent 50%);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}

/* ───────── ANIMATED BACKGROUND ───────── */
.background-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.35;
    animation: float 25s infinite alternate ease-in-out;
}

.orb-1 {
    width: 650px;
    height: 650px;
    background: radial-gradient(circle, var(--accent-glow), transparent 70%);
    top: -250px;
    right: -150px;
}

.orb-2 {
    width: 550px;
    height: 550px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.3), transparent 70%);
    bottom: -200px;
    left: -150px;
    animation-delay: -7s;
}

.orb-3 {
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.15), transparent 70%);
    top: 30%;
    left: 70%;
    animation-duration: 30s;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-80px, 60px) scale(1.1); }
    100% { transform: translate(60px, -80px) scale(0.9); }
}

/* ───────── NAV ───────── */
nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 32px 64px;
    z-index: 100;
}

.logo {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.75rem;
    color: var(--text);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.02);
}

.logo span {
    background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ───────── AUTH LAYOUT ───────── */
.auth-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    z-index: 10;
}

.auth-card {
    background: var(--surface);
    backdrop-filter: blur(32px);
    -webkit-backdrop-filter: blur(32px);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 56px;
    width: 100%;
    max-width: 480px;
    box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.05) inset;
    animation: cardEnter 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes cardEnter {
    from { opacity: 0; transform: translateY(40px) scale(0.95); filter: blur(10px); }
    to { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}

.auth-title {
    font-family: var(--font-display);
    font-size: 2.25rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 12px;
    letter-spacing: -0.025em;
    background: linear-gradient(to bottom, #fff, #a1a1aa);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.auth-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 40px;
    line-height: 1.5;
}

.form-group {
    margin-bottom: 28px;
    animation: itemFadeUp 0.6s ease both;
}

.form-group:nth-child(1) { animation-delay: 0.2s; }
.form-group:nth-child(2) { animation-delay: 0.3s; }
.form-group:nth-child(3) { animation-delay: 0.4s; }

@keyframes itemFadeUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-size: 0.875rem;
    color: #d1d5db;
    font-weight: 600;
    margin-left: 4px;
}

.form-control {
    width: 100%;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    color: var(--text);
    font-family: var(--font-main);
    font-size: 1rem;
    outline: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.2);
}

.form-control:focus {
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.1);
    transform: translateY(-1px);
}

/* ───────── BUTTONS ───────── */
.btn {
    width: 100%;
    padding: 16px;
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 700;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 12px;
    position: relative;
    overflow: hidden;
    animation: itemFadeUp 0.6s ease both;
    animation-delay: 0.5s;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
    color: white;
    box-shadow: 0 10px 25px -5px rgba(16, 185, 129, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px -5px rgba(16, 185, 129, 0.5);
    filter: brightness(1.1);
}

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

.btn-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    transition: 0.5s;
}

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

.auth-links {
    text-align: center;
    margin-top: 36px;
    font-size: 0.95rem;
    color: var(--text-muted);
    animation: itemFadeUp 0.6s ease both;
    animation-delay: 0.6s;
}

.auth-links a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 700;
    transition: all 0.2s;
    padding: 4px 8px;
    border-radius: 6px;
}

.auth-links a:hover {
    color: #fff;
    background: rgba(16, 185, 129, 0.1);
    text-decoration: underline;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-toggle {
    position: absolute;
    right: 12px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    border-radius: 8px;
    z-index: 10;
}

.password-toggle:hover {
    color: var(--accent);
    background: rgba(255, 255, 255, 0.05);
}

.form-control {
    padding-right: 48px; /* Room for toggle button */
}

/* ───────── MOBILE RESPONSIVENESS ───────── */
@media (max-width: 640px) {
    nav { padding: 24px; }
    .auth-card { padding: 40px 24px; }
    .auth-title { font-size: 1.875rem; }
    .logo { font-size: 1.5rem; }
}

