:root {
    --bg-color: #121212;
    --modal-bg: #1e1e1e;
    --primary-color: #bb86fc;
    --text-color: #ffffff;
    --text-secondary: #b0b0b0;
    --overlay-color: rgba(0, 0, 0, 0.7);
}

* {
    font-family: 'Vazirmatn', sans-serif !important;
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Vazirmatn', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    overflow-x: hidden;
}

/* Video Background */
.video-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

#bg-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--overlay-color);
}

/* Hero Content */
.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    text-align: center;
    padding: 20px;
}

h1 { font-size: 3rem; margin-bottom: 10px; }
p { font-size: 1.2rem; color: var(--text-secondary); margin-bottom: 30px; }

.cta-button {
    padding: 15px 40px;
    font-size: 1.2rem;
    background-color: var(--primary-color);
    color: #000;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: transform 0.2s;
    font-family: inherit;
    font-weight: bold;
}

.cta-button:hover { transform: scale(1.05); }

/* Modal Styles */
.modal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
    backdrop-filter: blur(5px);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: var(--modal-bg);
    padding: 30px;
    border-radius: 15px;
    width: 90%;
    max-width: 400px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.close-btn {
    position: absolute;
    top: 15px;
    left: 15px;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-secondary);
}

/* Form Toggle */
.form-toggle {
    display: flex;
    justify-content: space-around;
    margin-bottom: 20px;
    border-bottom: 1px solid #333;
}

.form-toggle button {
    background: none;
    border: none;
    color: var(--text-secondary);
    padding: 10px;
    cursor: pointer;
    font-family: inherit;
    font-size: 1rem;
    position: relative;
}

.form-toggle button.active {
    color: var(--primary-color);
}

.form-toggle button.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
}

/* Forms */
.auth-form { display: none; flex-direction: column; gap: 15px; }
.auth-form.active-form { display: flex; }

input {
    padding: 12px;
    background-color: #2c2c2c;
    border: 1px solid #333;
    border-radius: 8px;
    color: #fff;
    font-family: inherit;
    outline: none;
}

input:focus { border-color: var(--primary-color); }

.submit-btn {
    padding: 12px;
    background-color: var(--primary-color);
    border: none;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    font-family: inherit;
}

.note { font-size: 0.8rem; color: var(--text-secondary); text-align: center; }
.message-box { font-size: 0.9rem; text-align: center; margin-top: 10px; min-height: 20px;}
.error { color: #ff5252; }
.success { color: #4caf50; }
