:root {
    --bg-base: #020205;
    --text-primary: #ffffff;
    --text-secondary: #8b8e98;
    --accent-blue: #5c55f8;
    --accent-purple: #9b8cff;
    --card-bg: rgba(16, 16, 20, 0.4);
    --card-border: rgba(255, 255, 255, 0.08);
    --input-bg: rgba(255, 255, 255, 0.03);
    --input-border: rgba(255, 255, 255, 0.1);
    --font-primary: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-primary);
}

body {
    background-color: var(--bg-base);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
}

/* Texture overlay for premium feel */
.bg-noise {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* High-tech Background Effects */
.background-effects {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;
    overflow: hidden;
    pointer-events: none;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Massive background visual spheres */
.bg-sphere {
    position: absolute;
    width: 1200px;
    height: 1200px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.03);
    top: -20vh;
    box-shadow: inset 0px 40px 100px -20px rgba(92, 85, 248, 0.1);
}

.bg-sphere.inner {
    width: 800px;
    height: 800px;
    top: 10vh;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: inset 0px -40px 80px -20px rgba(155, 140, 255, 0.05);
}

.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
}

.glow-orb.primary {
    top: -10%;
    left: 40%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(92, 85, 248, 0.2) 0%, rgba(0, 0, 0, 0) 70%);
    animation: pulse 10s ease-in-out infinite alternate;
}

.glow-orb.secondary {
    bottom: -20%;
    right: 20%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(160, 133, 255, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
    animation: pulse 12s ease-in-out infinite alternate-reverse;
}

/* Light beam accents (like the landing page) */
.light-beam {
    position: absolute;
    bottom: -200px;
    width: 1px;
    height: 600px;
    background: linear-gradient(to top, rgba(255,255,255,0.8), rgba(255,255,255,0));
    box-shadow: 0 0 20px 2px rgba(255,255,255,0.2);
    filter: blur(1px);
}

.light-beam.left {
    left: 20%;
    transform: rotate(25deg);
    opacity: 0.15;
}

.light-beam.right {
    right: 20%;
    transform: rotate(-25deg);
    opacity: 0.15;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.4; }
    100% { transform: scale(1.1); opacity: 0.6; }
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 48px;
    position: relative;
    z-index: 10;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: white;
    transition: opacity 0.2s;
}

.logo:hover {
    opacity: 0.9;
}

.logo-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.02));
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: serif;
    font-size: 18px;
    color: #e2dfdf;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.logo-text {
    font-size: 18px;
    font-weight: 500;
    letter-spacing: -0.3px;
    color: #f1f1f1;
}

/* Pill-shaped nav menu */
.nav-links {
    display: flex;
    gap: 32px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 12px 32px;
    border-radius: 100px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.nav-links a {
    color: #a0a2af;
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: #ffffff;
}

.nav-btn {
    background: var(--accent-blue);
    color: white;
    text-decoration: none;
    padding: 10px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
    box-shadow: 0 4px 15px rgba(92, 85, 248, 0.2);
}

.nav-btn:hover {
    background: #4f47e6;
    box-shadow: 0 6px 20px rgba(92, 85, 248, 0.4);
    transform: translateY(-1px);
}

/* Main Login Area */
.login-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    z-index: 10;
    position: relative;
    padding-bottom: 80px;
}

.login-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-radius: 24px;
    padding: 48px;
    width: 100%;
    max-width: 440px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

/* Fade up animation for container */
.fade-up {
    animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
    transform: translateY(20px);
}

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

/* Subtle corner highlight */
.login-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    z-index: 1;
}

.card-header {
    text-align: center;
    margin-bottom: 36px;
}

.badge-container {
    margin-bottom: 24px;
    display: flex;
    justify-content: center;
}

.badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 100px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
    color: #b0acff;
    box-shadow: 0 0 20px rgba(176, 172, 255, 0.05);
}

.card-header h1 {
    font-size: 32px;
    font-weight: 600;
    letter-spacing: -1px;
    margin-bottom: 12px;
    background: linear-gradient(180deg, #FFFFFF 0%, #A1A3B1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.card-header p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
    max-width: 90%;
    margin: 0 auto;
}

/* Form Styles */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.input-group label {
    font-size: 13px;
    font-weight: 500;
    color: #c0c2cf;
}

.input-wrapper {
    position: relative;
    border-radius: 12px;
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    transition: all 0.3s ease;
}

.input-wrapper:focus-within {
    border-color: rgba(92, 85, 248, 0.5);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 0 4px rgba(92, 85, 248, 0.1);
}

.input-wrapper input {
    width: 100%;
    background: transparent;
    border: none;
    padding: 14px 16px;
    color: var(--text-primary);
    font-size: 15px;
    outline: none;
}

.input-wrapper input::placeholder {
    color: rgba(255, 255, 255, 0.2);
}

.form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 4px;
    margin-bottom: 8px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
}

.cb-text {
    font-size: 13px;
    color: var(--text-secondary);
    transition: color 0.2s;
}

.checkbox-label:hover .cb-text {
    color: #d1d3dd;
}

.checkbox-label input {
    display: none;
}

.checkmark {
    width: 16px;
    height: 16px;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 4px;
    background: rgba(255,255,255,0.05);
    position: relative;
    transition: all 0.2s;
}

.checkbox-label input:checked ~ .checkmark {
    background: var(--accent-blue);
    border-color: var(--accent-blue);
}

.checkbox-label input:checked ~ .checkmark::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 2px;
    width: 4px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.forgot-link {
    color: var(--text-secondary);
    font-size: 13px;
    text-decoration: none;
    transition: color 0.2s;
}

.forgot-link:hover {
    color: var(--text-primary);
}

/* Buttons */
.btn {
    width: 100%;
    padding: 14px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.primary-btn {
    background: var(--accent-blue);
    color: white;
    box-shadow: 0 4px 15px rgba(92, 85, 248, 0.2);
    position: relative;
    overflow: hidden;
}

/* Button hover reflection effect */
.primary-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transform: skewX(-20deg);
    transition: all 0.5s ease;
}

.primary-btn:hover::before {
    left: 150%;
}

.primary-btn:hover {
    background: #4f47e6;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(92, 85, 248, 0.35);
}

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

.wallet-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--input-border);
    color: var(--text-primary);
}

.wallet-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

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

.solana-icon {
    width: 18px;
    height: 18px;
}

/* Divider */
.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 24px 0;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.divider span {
    padding: 0 14px;
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 500;
}

/* Signup prompt */
.signup-prompt {
    text-align: center;
    margin-top: 32px;
    font-size: 14px;
    color: var(--text-secondary);
}

.signup-prompt a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
    border-bottom: 1px solid transparent;
}

.signup-prompt a:hover {
    color: var(--accent-blue);
    border-bottom-color: var(--accent-blue);
}

/* Responsiveness */
@media (max-width: 768px) {
    .navbar {
        padding: 20px 24px;
    }
    .nav-links {
        display: none;
    }
    .login-card {
        padding: 40px 24px;
    }
    .bg-sphere {
        width: 800px;
        height: 800px;
    }
}
