:root {
    --bg-main: #0B0F19;
    --bg-secondary: #12141C;
    --bg-tertiary: #1A1D26;
    --primary: #3B82F6;
    --primary-hover: #2563EB;
    --accent: #5B8DEF;
    --text-primary: #FFFFFF;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-muted: rgba(255, 255, 255, 0.5);
    --border: rgba(255, 255, 255, 0.05);
    --border-hover: rgba(255, 255, 255, 0.1);
    --success: #10B981;
    --danger: #EF4444;
    --warning: #F59E0B;
    --card-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
    --font-main: 'Inter', system-ui, -apple-system, sans-serif;
}

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

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--font-main);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* Fix for icons showing as crossed boxes */
.fas,
.far,
.fab,
.fa-solid,
.fa-regular,
.fa-brands {
    font-family: "Font Awesome 6 Free", "Font Awesome 6 Brands", "Font Awesome 5 Free", "Font Awesome 5 Brands", sans-serif !important;
    font-weight: 900 !important;
}

.fab,
.fa-brands {
    font-weight: 400 !important;
}

.far,
.fa-regular {
    font-weight: 400 !important;
}

a {
    transition: color 0.2s;
}

/* Auth Page Styles */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-main);
    background-image: radial-gradient(circle at top right, rgba(59, 130, 246, 0.1), transparent),
        radial-gradient(circle at bottom left, rgba(59, 130, 246, 0.05), transparent);
    padding: 20px;
}

#particles-js {
    position: fixed;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: -2;
}

.auth-wrapper {
    display: flex;
    width: 95%;
    max-width: 1000px;
    min-height: 560px;
    height: auto;
    background: var(--bg-secondary);
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: 0 32px 64px rgba(0, 0, 0, 0.4);
}

.auth-left {
    flex: 1;
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.auth-right {
    flex: 1;
    background: var(--bg-main);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 40px;
    border-left: 1px solid var(--border);
}

.auth-logo {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.auth-logo .highlight {
    color: var(--primary);
}

.auth-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 2rem;
}

.auth-card {
    width: 100%;
    max-width: 360px;
}

.auth-tabs {
    display: flex;
    gap: 8px;
    background: rgba(0, 0, 0, 0.2);
    padding: 4px;
    border-radius: 12px;
    margin-bottom: 2rem;
}

.tab-btn {
    flex: 1;
    padding: 10px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s;
}

.tab-btn.active {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
    animation: fadeIn 0.3s ease-out;
}

.input-group {
    position: relative;
    margin-bottom: 1rem;
}

.input-group i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.9rem;
}

.input-group input {
    width: 100%;
    padding: 14px 16px 14px 44px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: white;
    font-family: inherit;
    font-size: 0.95rem;
    transition: all 0.2s;
}

.input-group input:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(0, 0, 0, 0.3);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.forgot-pwd {
    text-align: right;
    margin-bottom: 1.5rem;
}

.forgot-pwd a {
    color: var(--primary);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    text-decoration: none;
    gap: 10px;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 8px 16px rgba(59, 130, 246, 0.25);
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(59, 130, 246, 0.35);
}

.w-full {
    width: 100%;
}

.auth-divider {
    display: flex;
    align-items: center;
    margin: 2rem 0;
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

.auth-divider span {
    padding: 0 16px;
}

.social-login {
    display: flex;
    gap: 12px;
}

.social-btn {
    flex: 1;
    background: var(--bg-tertiary);
    color: white;
    border: 1px solid var(--border);
}

.social-btn:hover {
    background: var(--bg-secondary);
    border-color: var(--border-hover);
}

.social-btn.discord i {
    color: #5865F2;
}

/* Mockup Illustration */
.mockup-container {
    position: relative;
    width: 80%;
    aspect-ratio: 4/3;
    background: linear-gradient(135deg, var(--bg-tertiary), var(--bg-main));
    border-radius: 20px;
    border: 1px solid var(--border);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mockup-illustration {
    width: 60%;
    height: 40%;
    background: rgba(59, 130, 246, 0.1);
    border: 2px dashed rgba(59, 130, 246, 0.3);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.m-line {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.m-short {
    width: 40%;
}

.m-long {
    width: 100%;
}

.m-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.m-button {
    width: 80px;
    height: 24px;
    background: var(--primary);
    border-radius: 12px;
}

.m-check {
    width: 24px;
    height: 24px;
    background: var(--success);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: white;
}

.mockup-circle {
    position: absolute;
    border-radius: 50%;
    background: var(--primary);
    filter: blur(80px);
    opacity: 0.15;
}

.mc-1 {
    width: 300px;
    height: 300px;
    top: -100px;
    right: -100px;
}

.mc-2 {
    width: 200px;
    height: 200px;
    bottom: -50px;
    left: -50px;
}

.auth-footer {
    position: absolute;
    bottom: 24px;
    color: var(--text-muted);
    font-size: 0.75rem;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

/* Home Grid Background Fix */
#home .absolute.inset-0.z-0 {
    background-color: var(--bg-main);
}

/* Footer Styles */
footer {
    background-color: var(--bg-secondary);
    color: var(--text-secondary);
    padding: 3rem 1rem;
    text-align: center;
    border-top: 1px solid var(--border);
    margin-top: 5rem;
    font-size: 0.85rem;
}

footer span {
    color: var(--primary);
    font-weight: 600;
}

/* Scrollbar Styles */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-main);
}

::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--border-hover);
}

/* Custom Select Dropdown */
.custom-select-wrapper {
    position: relative;
    user-select: none;
    width: 100%;
}

.custom-select-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.25rem;
    height: 52px;
    background: #1a1d26;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    color: #fff;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.custom-select-trigger:hover {
    border-color: rgba(59, 130, 246, 0.3);
}

.custom-select-wrapper.open .custom-select-trigger {
    border-color: #3b82f6;
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.15);
}

.custom-options {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: #1a1d26;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    overflow: hidden;
    display: none;
    z-index: 1000;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
}

.custom-select-wrapper.open .custom-options {
    display: block;
    animation: dropdownAnim 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.custom-option {
    padding: 12px 20px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.custom-option:hover {
    background: rgba(59, 130, 246, 0.15);
    color: #fff;
    padding-left: 24px;
}

.custom-option.selected {
    background: #3b82f6;
    color: #fff;
    font-weight: 600;
}

@keyframes dropdownAnim {
    from {
        opacity: 0;
        transform: translateY(-12px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}
