@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    --bg: #0b0b0b;
    --surface: #141414;
    --stroke: #2a2a2a;
    --accent: #ffffff;
    --text-dim: #888888;
    --radius: 16px;
    --discord: #5865F2;
    --google: #ffffff;
}

body {
    background-color: var(--bg);
    color: white;
    font-family: 'Inter', sans-serif;
    margin: 0; 
    padding: 0;
    display: flex; 
    flex-direction: column; 
    align-items: center;
    justify-content: flex-start; /* Keeps Nav at the top */
    height: 100vh; /* Changed back to height to ensure the "auto" margin works */
    overflow: hidden;
}

nav {
    width: 100%; 
    max-width: 1200px;
    display: flex; 
    justify-content: space-between;
    align-items: center; 
    box-sizing: border-box;
    padding: 40px 20px 20px 20px; /* This is your "top bar a bit down" */
    flex-shrink: 0; /* Prevents the nav from squishing */
}

.logo { font-size: 1.5rem; font-weight: 800; letter-spacing: -1px; display: flex; align-items: center; }
.logo span { color: var(--text-dim); font-weight: 900; }

.nav-actions { display: flex; gap: 12px; }

header {
    width: 100%; padding: 20px 20px 40px 20px;
    display: flex; flex-direction: column; align-items: center;
    border-bottom: 1px solid var(--stroke);
}

.btn {
    background: #1e1e1e; border: 1px solid var(--stroke); color: white;
    padding: 10px 18px; border-radius: 10px; cursor: pointer;
    display: flex; align-items: center; justify-content: center; gap: 8px;
    transition: 0.2s; font-size: 0.9rem; font-weight: 500; text-decoration: none;
}
.btn:hover { background: #2a2a2a; transform: translateY(-1px); }
.btn-create { background: white; color: black; font-weight: 700; border: none; }
.btn-discord { background: var(--discord); border: none; }

.auth-container {
    width: 100%;
    max-width: 420px;
    background: var(--surface);
    border: 1px solid var(--stroke);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    
    /* THE FIX: This pushes the card to the middle of the empty space */
    margin: auto 0; 
    
    animation: authPop 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    bottom: 20px; /* Small adjustment to account for the thick Top Bar padding */
}

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

.logo {
    text-align: center;
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 30px;
    letter-spacing: -1px;
}
.logo span { color: var(--text-dim); }

.tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    background: #0b0b0b;
    padding: 5px;
    border-radius: 12px;
    border: 1px solid var(--stroke);
}

.tab {
    flex: 1;
    padding: 10px;
    text-align: center;
    cursor: pointer;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-dim);
    transition: 0.2s;
}

.tab.active {
    background: var(--surface);
    color: white;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.social-row {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 25px;
}

.btn-social {
    width: 100%;
    padding: 12px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 0.9rem;
    transition: 0.2s;
}

.btn-discord { background: var(--discord); color: white; }
.btn-discord:hover { background: #4752c4; }

.btn-google { background: var(--google); color: black; }
.btn-google:hover { background: #e0e0e0; }

.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 20px 0;
    color: #333;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
}
.divider::before, .divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--stroke);
}
.divider:not(:empty)::before { margin-right: .5em; }
.divider:not(:empty)::after { margin-left: .5em; }

.input-group { margin-bottom: 18px; }

label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-dim);
    margin-bottom: 8px;
    text-transform: uppercase;
}

input {
    width: 100%;
    background: #0b0b0b;
    border: 1px solid var(--stroke);
    border-radius: 12px;
    padding: 14px;
    color: white;
    box-sizing: border-box;
    outline: none;
    transition: 0.2s;
}

input:focus { border-color: #555; }

.captcha-box {
    background: #0b0b0b;
    border: 1px solid var(--stroke);
    padding: 15px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    font-size: 0.85rem;
    color: var(--text-dim);
}

.captcha-check {
    width: 20px;
    height: 20px;
    border: 2px solid #333;
    border-radius: 4px;
    cursor: pointer;
}

.btn-primary {
    width: 100%;
    padding: 15px;
    background: white;
    color: black;
    border: none;
    border-radius: 12px;
    font-weight: 800;
    cursor: pointer;
    transition: 0.2s;
}

.btn-primary:hover { background: #e0e0e0; transform: translateY(-2px); }

#register-fields { display: none; }

#notif-box { position: fixed; bottom: 30px; right: 30px; z-index: 9999; }
.toast {
    background: #1e1e1e; border: 1px solid #444; padding: 12px 20px;
    border-radius: 10px; margin-top: 8px; display: flex; align-items: center; gap: 10px;
    animation: slideLeft 0.3s ease-out; color: white;
}
@keyframes slideLeft { from { transform: translateX(50px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
