@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=JetBrains+Mono:wght@400;700&display=swap');

/* === CYBER MINT & AMETHYST THEME === */
:root {
    --bg-color: #0A0A0F; 
    --surface: rgba(255, 255, 255, 0.03);
    --surface-hover: rgba(255, 255, 255, 0.06);
    --border: rgba(255, 255, 255, 0.08);
    --text-main: #F8FAFC;
    --text-muted: #94A3B8;
    --neon: #00E5FF; 
    --neon-alt: #B026FF; 
    --neon-glow: rgba(0, 229, 255, 0.3);
    --neon-glow-strong: rgba(0, 229, 255, 0.6);
    --primary-gradient: linear-gradient(135deg, #00E5FF, #B026FF);
    --success: #10B981;
    --danger: #F43F5E;
    --radius: 18px;
    --radius-sm: 12px;
    --font-main: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; outline: none; }

body {
    background-color: var(--bg-color);
    background-image: radial-gradient(circle at 50% 0%, rgba(176, 38, 255, 0.15) 0%, transparent 50%);
    background-repeat: no-repeat;
    color: var(--text-main);
    font-family: var(--font-main);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    padding-bottom: 100px;
}

a { text-decoration: none; color: inherit; transition: 0.3s ease; }

/* === TOP HEADER === */
.top-nav {
    position: sticky; top: 0; z-index: 1000;
    background: rgba(10, 10, 15, 0.85); backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    display: flex; justify-content: space-between; align-items: center;
    padding: 15px 30px; box-shadow: 0 4px 30px rgba(0,0,0,0.5);
}

.brand { display: flex; align-items: center; gap: 12px; }
.brand img { width: 34px; height: 34px; border-radius: 8px; }
.brand-text { font-size: 1.2rem; font-weight: 800; color: var(--text-main); display: flex; align-items: center; gap: 8px; }

.desktop-links { display: none; align-items: center; gap: 20px; }
.nav-link { font-size: 0.9rem; font-weight: 600; color: var(--text-muted); display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: var(--radius-sm); transition: 0.3s; }
.nav-link:hover, .nav-link.active { color: var(--neon); background: var(--surface); box-shadow: 0 0 15px var(--neon-glow); }

/* === MAIN CONTAINER & UI COMPONENTS === */
.main-container { width: 100%; max-width: 950px; margin: 40px auto 0; padding: 0 20px; animation: fadeInUp 0.6s ease forwards; }

.hero-section.text-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    margin: 0 auto 40px auto;
}

.hero-section.text-center p {
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.terminal-box {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 35px;
    backdrop-filter: blur(15px); position: relative; z-index: 2;
    box-shadow: 0 15px 40px rgba(176, 38, 255, 0.15); margin-bottom: 25px;
}

.input-wrapper { position: relative; margin-bottom: 15px; }
.input-wrapper .icon { position: absolute; left: 25px; top: 50%; transform: translateY(-50%); color: var(--text-muted); font-size: 1.1rem; }
.cyber-input {
    width: 100%; background: #000; border: 1px solid var(--border);
    border-radius: var(--radius-sm); padding: 18px 20px 18px 60px;
    color: var(--text-main); font-family: var(--font-mono); font-size: 1rem;
    transition: 0.3s; box-shadow: inset 0 2px 10px rgba(0,0,0,0.5);
}
.cyber-input:focus { border-color: var(--neon); box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.1), inset 0 2px 10px rgba(0,0,0,0.5); }

/* UIVERSE BUTTON */
.btn-wrapper {
    --rad: 12px; --color-wrapper-border: #fff; --color-btn-bg: #f00; --color-btn-text: #000;
    --color-btn-text-shadow: #fff; --color-btn-inset-shadow: #558; --color-layer-a: #fff;
    --color-layer-b: #00f; --color-overlay-text: #000; --color-overlay-glow: #fff;
    position: relative; display: flex; align-items: center; justify-content: center;
    overflow: clip; border: 2px solid var(--color-wrapper-border); border-radius: var(--rad);
    font-size: 1.2rem; font-weight: 800; filter: saturate(0.65) brightness(1.8); cursor: pointer; width: 100%;
}
.gradient-btn { padding: 16px; border: none; border-radius: var(--rad); width: 100%; background-color: var(--color-btn-bg); color: var(--color-btn-text); mix-blend-mode: color-dodge; transition: 0.3s; }
.gradient-layer { position: absolute; left: -160px; width: 500%; aspect-ratio: 1; background: radial-gradient(ellipse at 65% 180%, var(--color-layer-a), var(--color-layer-b), var(--color-layer-a), var(--color-layer-b)); mix-blend-mode: difference; animation: rotate 8s linear infinite; pointer-events: none; }
.text-overlay { position: absolute; z-index: 2; color: var(--color-overlay-text); mix-blend-mode: multiply; pointer-events: none; display: flex; gap: 10px; }

@keyframes rotate { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* Mobile Menu & Nav Styles */
.mobile-menu-btn { display: none; background: transparent; border: none; color: var(--text-main); font-size: 1.5rem; cursor: pointer; }
.nav-socials { display: flex; gap: 10px; margin-left: 15px; padding-left: 15px; border-left: 1px solid var(--border); }
.nav-socials a { color: var(--text-muted); transition: 0.3s; }
.nav-socials a:hover { color: var(--neon); }

@media (max-width: 768px) {
    .mobile-menu-btn { display: block; }
    .desktop-links { 
        display: none; position: absolute; top: 100%; left: 0; width: 100%; 
        background: rgba(10, 10, 15, 0.95); backdrop-filter: blur(15px); 
        flex-direction: column; padding: 20px; border-bottom: 1px solid var(--border);
        box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    }
    .desktop-links.active { display: flex; }
    .nav-socials { border-left: none; padding-left: 0; margin-left: 0; margin-top: 10px; }
}

@media (min-width: 769px) { .desktop-links { display: flex; } body { padding-bottom: 30px; } }

/* Grids & Cards */
.features-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

.feature-card {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius-sm); padding: 20px; transition: 0.3s;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.feature-card:hover { border-color: var(--neon); transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0, 229, 255, 0.1); background: var(--surface-hover); }

.feature-icon { font-size: 2.5rem; color: var(--neon); margin-bottom: 15px; }
.feature-card h3 { font-size: 1.1rem; margin-bottom: 10px; color: var(--text-main); }
.feature-card p { font-size: 0.9rem; color: var(--text-muted); text-align: center; line-height: 1.5; }

/* Service Pill Grid Styles (For Supported Platforms) */
.services-grid { 
    display: flex; flex-wrap: wrap; justify-content: center; 
    gap: 12px; max-width: 1000px; margin: 0 auto; 
}

.service-pill {
    background: var(--surface); border: 1px solid var(--border);
    padding: 8px 16px; border-radius: 50px; font-size: 0.85rem; font-weight: 600;
    color: var(--text-main); display: flex; align-items: center; gap: 8px;
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1); cursor: default;
}

.service-pill:hover { 
    border-color: var(--neon); color: #fff; 
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.2); 
    transform: translateY(-2px); background: rgba(0, 229, 255, 0.05); 
}

.service-pill i { color: var(--neon); font-size: 1.1rem; }

.service-type { 
    font-size: 0.7rem; color: var(--text-muted); 
    font-family: var(--font-mono); font-weight: 400; 
    margin-left: 4px; padding-left: 8px; 
    border-left: 1px solid var(--border); 
}

/* Modal Styles */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.8); backdrop-filter: blur(5px);
    display: none; align-items: center; justify-content: center; z-index: 9999;
}
.modal-content {
    background: #111; border: 1px solid var(--border); border-radius: var(--radius);
    padding: 40px; text-align: center; max-width: 400px; width: 90%; position: relative;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}
.close-modal { position: absolute; top: 15px; right: 15px; background: none; border: none; color: var(--text-muted); font-size: 1.5rem; cursor: pointer; }
.btn-primary { background: var(--primary-gradient); color: #fff; padding: 10px 25px; border-radius: 8px; font-weight: 600; }
.btn-secondary { background: var(--surface); border: 1px solid var(--border); color: var(--text-main); padding: 10px 25px; border-radius: 8px; font-weight: 600; transition: 0.3s; }
.btn-secondary:hover { background: rgba(255,255,255,0.1); }

/* Social Icons */
.social-icons-large { display: flex; flex-wrap: wrap; justify-content: center; gap: 15px; }
.social-btn {
    display: flex; align-items: center; gap: 8px; padding: 10px 20px;
    background: var(--surface); border: 1px solid var(--border); border-radius: 50px;
    color: var(--text-main); font-weight: 600; font-size: 0.9rem; transition: 0.3s;
}
.social-btn i { font-size: 1.2rem; }
.social-btn.facebook:hover { background: #1877F2; border-color: #1877F2; }
.social-btn.instagram:hover { background: #E1306C; border-color: #E1306C; }
.social-btn.telegram:hover { background: #0088cc; border-color: #0088cc; }
.social-btn.twitter:hover { background: #1da1f2; border-color: #1da1f2; }
.social-btn.youtube:hover { background: #FF0000; border-color: #FF0000; }
.social-btn.github:hover { background: #333; border-color: #666; }

/* === ADVANCED DUAL-PANE LOGIN (WIDER COLUMNS) === */
.login-showcase {
    display: flex;
    max-width: 1200px; /* Increased width */
    width: 100%;
    margin: 40px auto;
    background: rgba(10, 10, 15, 0.4);
    border: 1px solid var(--border);
    border-radius: 24px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    overflow: hidden;
    position: relative;
    z-index: 2;
}

/* Left Brand Side */
.login-brand-side {
    flex: 1;
    background: radial-gradient(circle at top left, rgba(0, 229, 255, 0.15), transparent 60%),
                radial-gradient(circle at bottom right, rgba(176, 38, 255, 0.15), transparent 60%);
    padding: 60px 50px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    border-right: 1px solid var(--border);
    overflow: hidden;
}

.brand-floating-orb {
    position: absolute;
    width: 350px;
    height: 350px;
    background: var(--primary-gradient);
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.25;
    animation: floatOrb 8s infinite ease-in-out alternate;
    top: -50px;
    left: -50px;
    z-index: 0;
}

.brand-content { position: relative; z-index: 1; }

/* Right Form Side */
.login-form-side {
    flex: 1.2; /* Gives form slightly more room */
    padding: 60px;
    background: var(--bg-color);
}

/* Floating Label Inputs */
.floating-input-group {
    position: relative;
    margin-bottom: 25px;
}

.floating-input {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 22px 18px 12px 18px; /* Bigger input boxes */
    color: var(--text-main);
    font-size: 1rem;
    outline: none;
    transition: 0.3s;
}

.floating-label {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 1rem;
    pointer-events: none;
    transition: 0.3s ease;
}

.floating-input:focus,
.floating-input:not(:placeholder-shown) {
    border-color: var(--neon);
    background: rgba(0, 229, 255, 0.05);
}

.floating-input:focus ~ .floating-label,
.floating-input:not(:placeholder-shown) ~ .floating-label {
    top: 14px;
    font-size: 0.75rem;
    color: var(--neon);
    font-weight: 600;
}

/* Animations */
@keyframes floatOrb {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(30px, 50px) scale(1.1); }
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .login-showcase { flex-direction: column; margin: 20px auto; border-radius: 16px; }
    .login-brand-side { display: none; }
    .login-form-side { padding: 30px 20px; }
}