* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --primary-blue:#4F46E5;
    --secondary-purple:#7C3AED;
    --accent-cyan:#06B6D4;
    --dark-bg:#0F172A;
    --darker-bg:#020617;
    --light-text:#F8FAFC;
    --gray-text:#94A3B8;
    --card-bg:rgba(30,41,59,0.5);
    --glass-bg:rgba(255,255,255,0.05);
    --gradient-2:linear-gradient(135deg,#4F46E5 0%,#06B6D4 100%);
    --success-green:#10B981;
    --error-red:#EF4444;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--darker-bg);
    color: var(--light-text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Background Animation */
.bg-animation {
    position: fixed; top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: -1;
    background: var(--darker-bg);
    overflow: hidden;
}

.bg-animation::before {
    content: '';
    position: absolute;
    width: 200%; height: 200%;
    background:
        radial-gradient(circle at 20% 50%, rgba(79,70,229,0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(124,58,237,0.15) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(6,182,212,0.1) 0%, transparent 50%);
    animation: bgMove 20s ease-in-out infinite;
}

@keyframes bgMove {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-50px, -50px); }
}

/* Navbar */
nav {
    background: rgba(15,23,42,0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.nav-container {
    max-width: 1100px; margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex; justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    background: var(--gradient-2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.logo i {
    -webkit-text-fill-color: var(--primary-blue);
}

/* Buttons */
.btn {
    padding: 0.65rem 1.3rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--gradient-2);
    color: #fff;
    box-shadow: 0 4px 15px rgba(79,70,229,0.4);
}

.btn-primary:hover { transform: translateY(-1px); }

.btn-secondary {
    background: rgba(255,255,255,0.06);
    color: var(--light-text);
    border: 1px solid rgba(255,255,255,0.15);
}

.btn-secondary:hover { background: rgba(255,255,255,0.12); }

/* Wrapper */
.page-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

/* Card */
.auth-card {
    width: 100%;
    max-width: 960px;
    background: var(--card-bg);
    border-radius: 24px;
    border: 1px solid rgba(148,163,184,0.3);
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    overflow: hidden;
    backdrop-filter: blur(24px);
    box-shadow: 0 25px 60px rgba(15,23,42,0.75);
}

.auth-main {
    padding: 2.2rem 2.3rem;
}

.auth-side {
    padding: 2rem;
    background: radial-gradient(circle at top left, rgba(79,70,229,0.9), rgba(15,23,42,1));
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: #E5E7EB;
}

/* Tabs */
.auth-tabs {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    background: rgba(15,23,42,0.6);
    padding: 0.35rem;
    border-radius: 999px;
}

.auth-tab {
    flex: 1;
    border-radius: 999px;
    border: none;
    background: transparent;
    color: var(--gray-text);
    cursor: pointer;
    padding: 0.45rem 0.75rem;
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
}

.auth-tab.active {
    background: rgba(15,23,42,0.95);
    color: var(--light-text);
}

/* Titles */
.auth-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.auth-subtitle {
    font-size: 0.9rem;
    color: var(--gray-text);
    margin-bottom: 1.4rem;
}

/* Social */
.social-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 1.2rem;
}

.social-btn {
    flex: 1 1 calc(50% - 0.6rem);
    min-width: 120px;
}

/* Divider */
.divider {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 1rem 0;
    font-size: 0.8rem;
    color: var(--gray-text);
}

.divider span {
    flex: 1;
    height: 1px;
    background: rgba(148,163,184,0.4);
}

/* Inputs */
.form-group { margin-bottom: 1rem; }

.form-label {
    font-size: 0.85rem;
    margin-bottom: 0.3rem;
    color: var(--gray-text);
    display: block;
}

.form-input {
    width: 100%;
    padding: 0.7rem 0.9rem;
    border-radius: 10px;
    border: 1px solid rgba(148,163,184,0.6);
    background: rgba(15,23,42,0.8);
    color: var(--light-text);
    font-size: 0.9rem;
    outline: none;
}

.form-input:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 1px rgba(79,70,229,0.4);
}

.form-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.75rem;
    font-size: 0.8rem;
    color: var(--gray-text);
}

/* Links */
.link {
    color: var(--accent-cyan);
    text-decoration: none;
    font-weight: 500;
}

.link:hover { text-decoration: underline; }

/* Side panel */
.side-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.side-list {
    margin-top: 1rem;
    font-size: 0.85rem;
    list-style: none;
    padding-left: 0;
}

.side-list li {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    align-items: flex-start;
}

.side-list i {
    color: #A5B4FC;
    margin-top: 2px;
}

.side-footer {
    font-size: 0.8rem;
    color: #CBD5F5;
    margin-top: 1rem;
}

/* Footer */
.footer {
    padding: 0.75rem 1.5rem;
    border-top: 1px solid rgba(148,163,184,0.3);
    font-size: 0.8rem;
    color: var(--gray-text);
    text-align: center;
    background: rgba(15,23,42,0.95);
}

/* Responsive */
@media(max-width:900px) {
    .auth-card { grid-template-columns: 1fr; }
    .auth-side { display: none; }
}

@media(max-width:480px) {
    .nav-container { padding: 0.75rem 1rem; }
    .auth-main { padding: 1.6rem 1.4rem; }
    .social-row { flex-direction: column; }
}
