* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    height: 100%;
    overflow-y: auto;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: #0a0a0a;
    color: #ffffff;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    position: relative;
}

/* ویدیوی پس‌زمینه */
#backgroundVideo {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    z-index: -1;
    pointer-events: none;
    opacity: 0.5;
}

/* کانتینر اصلی */
.main-container {
    width: 100%;
    max-width: 420px;
}

/* کادر فرم با بکگراند تیره */
.form-container {
    background: rgba(20, 20, 20, 0.178);
    border-radius: 18px;
    padding: 25px;
    border: 1px solid rgba(255, 255, 255, 0.034);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0);
    margin-bottom: 15px;
}

/* لوگو و متن داخل کادر */
.header-section {
    text-align: center;
    margin-bottom: 20px;
}

.activision-logo {
    margin-bottom: 10px;
}

.activision-logo img {
    max-width: 160px;
    height: auto;
}

/* نمایش متن با استایل خاص - حذف پس زمینه مشکی */


.welcome-text p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 11px;
    line-height: 1.5;
    margin: 0;
    font-family: 'Courier New', monospace;
    white-space: pre-line;
    word-wrap: break-word;
    position: relative;
}

/* افکت تایپ برای متن (اختیاری) */
.typed-text {
    border-right: 2px solid rgba(255, 255, 255, 0.7);
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 100% { border-color: rgba(255, 255, 255, 0.7); }
    50% { border-color: transparent; }
}

/* استایل فرم */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 500;
    color: #cccccc;
}

.form-input-wrapper {
    position: relative;
}

/* فیلدهای ایمیل و رمز با گوشه‌های تیز */
.form-input {
    width: 100%;
    padding: 14px 12px;
    background: rgba(30, 30, 30, 0.377);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 0;
    color: #ffffff;
    font-size: 14px;
    transition: all 0.3s ease;
    outline: none;
}

.form-input:focus {
    border-color: #007bff;
    background: rgba(40, 40, 40, 0.9);
}

.eye-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    font-size: 1.1em;
    padding: 5px;
    transition: color 0.3s;
}

.eye-btn:hover {
    color: #ffffff;
}

/* کپچا v2 گوگل */
.g-recaptcha {
    margin: 15px 0;
    display: flex;
    justify-content: center;
    transform: scale(0.9);
    transform-origin: center;
}

/* دکمه لاگین */
.login-btn {
    width: 100%;
    padding: 15px;
    background: #1e5896;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.login-btn:hover {
    background: #2568b5;
}

.help-link {
    display: block;
    text-align: center;
    color: #66b3ff;
    text-decoration: none;
    font-size: 13px;
    margin-top: 15px;
    transition: color 0.3s;
}

.help-link:hover {
    color: #99ccff;
    text-decoration: underline;
}

/* جداکننده */
.separator {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 20px 0;
    color: rgba(255, 255, 255, 0.4);
    font-size: 13px;
}

.separator::before,
.separator::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.separator:not(:empty)::before {
    margin-right: 10px;
}

.separator:not(:empty)::after {
    margin-left: 10px;
}

/* پلتفرم‌های ورود */
.platforms {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.platform-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    font-size: 20px;
    color: rgba(255, 255, 255, 0.9);
}

.platform-icon:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-3px);
}

/* رنگ‌های مختلف برای هر آیکون */
.platform-icon.psn {
    background: rgba(23, 26, 33, 0.7);
}

.platform-icon.xbox {
    background: rgba(23, 26, 33, 0.7);
}

.platform-icon.steam {
    background: rgba(23, 26, 33, 0.7);
}

.platform-icon.battle {
    background: rgba(23, 26, 33, 0.7);
}

/* Sign Up */
.signup {
    text-align: center;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 15px;
}

.signup-link {
    color: #66b3ff;
    text-decoration: none;
    font-weight: 500;
    margin-left: 5px;
}

.signup-link:hover {
    text-decoration: underline;
    color: #99ccff;
}

/* متن اطلاعات سایت - زیر لوگو */
.site-info-text {
    text-align: center;
    margin-top: 10px;
    margin-bottom: 20px;
    padding: 12px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.site-info-text p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 11px;
    line-height: 1.5;
    margin: 0;
    font-family: 'Courier New', monospace;
    white-space: pre-line;
    word-wrap: break-word;
}

/* لینک‌های Legal بیرون از کادر - پایین سمت چپ */
.legal-links-outside {
    position: fixed;
    left: 20px;
    bottom: 20px;
    z-index: 100;
    max-width: 300px;
}

.legal-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    background: none;
    border: none;
    padding: 0;
}

.legal-section {
    flex: 1;
}

.legal-title {
    color: rgba(255, 255, 255, 0.6);
    font-size: 11px;
    margin-bottom: 5px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.legal-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.legal-list li {
    margin-bottom: 3px;
}

.legal-links-outside a {
    color: rgba(255, 255, 255, 0.4);
    text-decoration: none;
    font-size: 10px;
    transition: color 0.3s;
}

.legal-links-outside a:hover {
    color: rgba(255, 255, 255, 0.8);
}

/* کوکی بار */
#cookie-banner {
    position: fixed;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 450px;
    background: rgba(10, 10, 10, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0;
    padding: 15px;
    z-index: 10000;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.8);
}

.cookie-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.cookie-header h4 {
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
}

.cookie-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 22px;
    cursor: pointer;
    padding: 0;
    width: 25px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.cookie-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.cookie-content p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
    line-height: 1.5;
    margin-bottom: 15px;
}

.cookie-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

.cookie-btn {
    padding: 8px 15px;
    border-radius: 0;
    border: none;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.3s ease;
    min-width: 90px;
}

.reject-btn {
    background: rgba(255, 255, 255, 0.05);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.reject-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.accept-btn {
    background: #1e5896;
    color: white;
    border: none;
}

.accept-btn:hover {
    background: #2568b5;
}

/* کپی رایت */
.copyright {
    text-align: center;
    color: rgba(255, 255, 255, 0.4);
    font-size: 10px;
    margin-top: 10px;
    padding: 10px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
}

/* واکنش‌گرایی */
@media (max-width: 768px) {
    .form-container {
        padding: 20px;
    }

    .platforms {
        gap: 12px;
    }

    .platform-icon {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }

    #cookie-banner {
        width: 95%;
        padding: 12px;
        bottom: 10px;
    }
    
    /* لینک‌های Legal در موبایل */
    .legal-links-outside {
        left: 10px;
        bottom: 10px;
        max-width: 280px;
    }
    
    .legal-container {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 12px;
    }
    
    .legal-section {
        min-width: 130px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 15px;
    }

    .form-container {
        padding: 15px;
    }

    .form-input {
        padding: 12px;
    }

    .login-btn {
        padding: 13px;
        font-size: 14px;
    }

    .platforms {
        gap: 10px;
    }

    .platform-icon {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .welcome-text p {
        font-size: 10px;
    }
    
    /* لینک‌های Legal در موبایل کوچک */
    .legal-links-outside {
        left: 8px;
        bottom: 8px;
        max-width: 260px;
    }
    
    .legal-container {
        flex-direction: column;
        gap: 10px;
    }
    
    .legal-section {
        min-width: 100%;
    }
    
    .legal-title {
        font-size: 10px;
    }
    
    .legal-links-outside a {
        font-size: 9px;
    }
}