/* ===== START PAGE SPECIFIC STYLES ===== */

/* Hero Section for Start Page */
.start-hero {
    padding-top: 140px;
    padding-bottom: 60px;
    min-height: auto;
}

.start-hero .hero-content {
    max-width: 700px;
    margin: 0 auto;
}

/* Registration Form */
.registration-form-wrapper {
    background: rgba(25, 15, 45, 0.85);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-xl);
    border: var(--border-glow);
    padding: 40px;
    margin-bottom: 40px;
    box-shadow: var(--shadow-soft);
    position: relative;
    overflow: hidden;
}

.registration-form-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--gradient-primary);
}

.form-card {
    text-align: center;
}

.form-header {
    margin-bottom: 30px;
}

.form-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: white;
    box-shadow: 0 15px 35px rgba(168, 85, 247, 0.3);
}

.form-title {
    font-size: 32px;
    margin-bottom: 10px;
    color: var(--text-light);
    font-family: 'Cormorant Garamond', serif;
}

.form-subtitle {
    color: var(--text-muted);
    font-size: 16px;
    line-height: 1.6;
}

/* Form Elements */
.registration-form {
    max-width: 400px;
    margin: 0 auto;
}

.form-group {
    position: relative;
    margin-bottom: 15px; /* Уменьшен отступ между полями */
}

.form-group .input-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-purple);
    font-size: 18px;
    z-index: 1;
}

.form-input {
    width: 100%;
    padding: 18px 20px 18px 55px;
    background: rgba(255, 255, 255, 0.08);
    border: var(--border-glow);
    border-radius: var(--radius-lg);
    color: var(--text-light);
    font-size: 16px;
    font-family: 'Inter', sans-serif;
    transition: var(--transition-smooth);
    outline: none;
}

.form-input:focus {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--primary-purple);
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.1);
}

.form-input::placeholder {
    color: var(--text-secondary);
}

/* Form Errors - ИСПРАВЛЕННЫЕ ОТСТУПЫ */
.form-errors {
    margin: 15px 0;
    text-align: center;
}

.error-message {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: var(--radius-md);
    padding: 12px 20px;
    margin: 10px 0;
    color: #F87171;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 14px;
}

.error-message i {
    font-size: 16px;
}

/* Input-specific error messages - ИСПРАВЛЕННЫЕ ОТСТУПЫ */
.input-error {
    position: absolute;
    bottom: -30px;
    left: 0;
    right: 0;
    margin: 0 auto;
    width: 100%;
    padding: 8px 12px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: var(--radius-sm);
    color: #F87171;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition-smooth);
    z-index: 1;
    pointer-events: none;
}

.input-error.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.input-error i {
    font-size: 14px;
    min-width: 16px;
}

.form-group.has-error {
    margin-bottom: 40px; /* Увеличен отступ при ошибке */
}

.form-group.has-error .form-input {
    border-color: #EF4444;
    background: rgba(239, 68, 68, 0.05);
    margin-bottom: 5px; /* Отступ от поля до ошибки */
}

/* Submit Button */
.form-submit {
    width: 100%;
    padding: 18px 20px;
    font-size: 18px;
    margin: 20px 0;
}

/* Telegram Auth - УБРАН БОРДЕР И УМЕНЬШЕНЫ ОТСТУПЫ */
.tg-auth-section {
    margin-top: 20px;
    padding-top: 20px;
}

.tg-auth-divider {
    position: relative;
    text-align: center;
    margin-bottom: 15px;
}

.tg-auth-divider span {
    display: inline-block;
    padding: 0 15px;
    background: var(--card-bg);
    color: var(--text-secondary);
    font-size: 14px;
    position: relative;
    z-index: 1;
}

.tg-auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.tg-auth {
    text-align: center;
}

.tg-auth-small .tg-auth {
    display: flex;
    justify-content: center;
}

/* Form Footer - УБРАН БОРДЕР И УМЕНЬШЕНЫ ОТСТУПЫ */
.form-footer {
    margin-top: 20px;
}

.form-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.form-link {
    text-decoration: none;
    font-size: 15px;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 20px;
    border-radius: var(--radius-md);
}

.account-link {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    color: #3B82F6;
    font-weight: 600;
    position: relative;
    overflow: hidden;
}

.account-link:hover {
    background: rgba(59, 130, 246, 0.2);
    color: #2563EB;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(59, 130, 246, 0.2);
}

.forgot-link {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
}

.forgot-link:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-light);
    transform: translateY(-2px);
}

.form-link i {
    font-size: 14px;
}

.form-policy {
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.5;
    padding: 0 10px;
}

.policy-link {
    color: var(--primary-purple);
    text-decoration: none;
    transition: var(--transition-smooth);
}

.policy-link:hover {
    color: var(--primary-pink);
    text-decoration: underline;
}

/* Additional Game Modes - ИСПРАВЛЕННЫЕ ЦВЕТА */
.additional-modes {
    margin-top: 40px;
	/*
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
	*/
}

.additional-modes-title {
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--text-light);
    text-align: center;
    font-family: 'Cormorant Garamond', serif;
}

.additional-modes-subtitle {
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 30px;
    font-size: 16px;
}

.modes-buttons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    max-width: 1200px;
    margin: 0 auto;
}

.mode-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 25px 15px;
    border-radius: var(--radius-lg);
    text-decoration: none;
    transition: var(--transition-bounce);
    text-align: center;
    position: relative;
    overflow: hidden;
    border: var(--border-glow);
    background: var(--card-bg);
    height: 100%;
}

.mode-btn:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-glow);
}

.mode-btn i {
    font-size: 36px;
    margin-bottom: 15px;
    transition: var(--transition-smooth);
}

.mode-btn:hover i {
    transform: scale(1.2) rotate(5deg);
}

.mode-btn span {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-light);
}

.mode-btn small {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.4;
}

/* Цвета для разных режимов игры */
/* МЖ - Зеленый */
.mode-mw {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(5, 150, 105, 0.15));
    border-color: rgba(16, 185, 129, 0.3);
}

.mode-mw i {
    color: #10B981;
}

.mode-mw:hover {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.25), rgba(5, 150, 105, 0.25));
    border-color: rgba(16, 185, 129, 0.5);
}

/* ЖМЖ - Розовый */
.mode-fmf {
    background: linear-gradient(135deg, rgba(255, 107, 157, 0.15), rgba(236, 72, 153, 0.15));
    border-color: rgba(255, 107, 157, 0.3);
}

.mode-fmf i {
    color: #FF6B9D;
}

.mode-fmf:hover {
    background: linear-gradient(135deg, rgba(255, 107, 157, 0.25), rgba(236, 72, 153, 0.25));
    border-color: rgba(255, 107, 157, 0.5);
}

/* МЖМ - Голубой */
.mode-mfm {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(37, 99, 235, 0.15));
    border-color: rgba(59, 130, 246, 0.3);
}

.mode-mfm i {
    color: #3B82F6;
}

.mode-mfm:hover {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.25), rgba(37, 99, 235, 0.25));
    border-color: rgba(59, 130, 246, 0.5);
}

/* МЖМЖ - Фиолетовый */
.mode-mfmf {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.15), rgba(124, 58, 237, 0.15));
    border-color: rgba(168, 85, 247, 0.3);
}

.mode-mfmf i {
    color: #A855F7;
}

.mode-mfmf:hover {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.25), rgba(124, 58, 237, 0.25));
    border-color: rgba(168, 85, 247, 0.5);
}

/* Auth Options Section */
.auth-options {
    background: var(--gradient-dark);
    position: relative;
    padding: 60px 0;
}

.auth-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.auth-card {
    background: var(--card-bg);
    border-radius: var(--radius-xl);
    padding: 35px 25px;
    border: var(--border-glow);
    transition: var(--transition-bounce);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
}

.auth-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-glow);
    border-color: rgba(168, 85, 247, 0.4);
}

/* Auth иконки - единый стиль */
.auth-icon {
    width: 70px;
    height: 70px;
    background: var(--gradient-soft);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 28px;
    color: var(--primary-purple);
    border: var(--border-glow);
    transition: var(--transition-smooth);
}

.auth-card:hover .auth-icon {
    background: var(--gradient-primary);
    color: white;
    transform: rotateY(180deg);
}

.auth-card h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--text-light);
}

.auth-card p {
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 20px;
    flex: 1;
}

.auth-button {
    padding: 14px 28px;
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    color: white;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition-smooth);
    display: inline-block;
    width: 100%;
    max-width: 180px;
}

.auth-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(168, 85, 247, 0.3);
}

.tg-auth-small .tg-auth {
    width: 100%;
    max-width: 180px;
}

/* Registration Benefits Section */
.registration-benefits {
    background: linear-gradient(180deg, var(--darker-bg) 0%, rgba(10, 6, 24, 0.95) 100%);
    padding: 60px 0;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.benefit-card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: 30px 25px;
    border: var(--border-glow);
    transition: var(--transition-smooth);
    text-align: center;
    height: 100%;
}

.benefit-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-glow);
    border-color: rgba(168, 85, 247, 0.3);
}

.benefit-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 15px;
    background: var(--gradient-soft);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--primary-purple);
    border: var(--border-glow);
    transition: var(--transition-smooth);
}

.benefit-card:hover .benefit-icon {
    background: var(--gradient-primary);
    color: white;
    transform: scale(1.1);
}

.benefit-card h3 {
    font-size: 18px;
    margin-bottom: 12px;
    color: var(--text-light);
}

.benefit-card p {
    color: var(--text-muted);
    line-height: 1.6;
    font-size: 15px;
}

/* Section Header - скрытие иконок на мобильных */
.section-header .section-title,
.section-header .section-subtitle {
    position: relative;
}

/* Анимации */
@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 10px 30px rgba(255, 107, 157, 0.4);
    }
    50% {
        box-shadow: 0 10px 40px rgba(255, 107, 157, 0.6);
    }
}

/* ===== ИСПРАВЛЕНИЯ ДЛЯ МОБИЛЬНЫХ ===== */

/* Уменьшение отступов по бокам на мобильных */
@media (max-width: 768px) {
    .container {
        padding: 0 15px; /* Уменьшены боковые отступы */
    }
    
    .registration-form-wrapper {
        padding: 25px 15px;
        margin-bottom: 30px;
    }
    
    /* Скрытие иконки на мобильных */
    .form-icon {
        display: none;
    }
    
    /* Увеличение отступа сверху чтобы меню не перекрывало */
    .start-hero {
        padding-top: 110px; /* Увеличен отступ сверху */
        padding-bottom: 40px;
    }
    
    .form-header {
        margin-bottom: 20px;
    }
    
    .form-title {
        font-size: 26px;
        margin-top: 10px; /* Дополнительный отступ когда скрыта иконка */
    }
    
    .form-subtitle {
        font-size: 15px;
    }
    
    .form-input {
        padding: 16px 20px 16px 50px;
        font-size: 15px;
    }
    
    .input-error {
        bottom: -28px;
        font-size: 12px;
        padding: 6px 10px;
        width: 100%;
    }
    
    .form-submit {
        padding: 16px 20px;
        font-size: 16px;
        margin: 15px 0;
    }
    
    /* Скрытие иконок в заголовках на мобильных */
    .section-header .section-title::before,
    .section-header .section-subtitle::before {
        display: none;
    }
    
    .additional-modes-title,
    .section-title {
        font-size: 20px;
    }
    
    .additional-modes-subtitle,
    .section-subtitle {
        font-size: 14px;
    }
    
    .modes-buttons {
        grid-template-columns: 1fr;
        max-width: 100%; /* Занимает всю ширину */
        gap: 12px;
    }
    
    .mode-btn {
        padding: 20px 15px;
    }
    
    .mode-btn i {
        font-size: 28px;
        margin-bottom: 12px;
    }
    
    .mode-btn span {
        font-size: 16px;
    }
    
    .mode-btn small {
        font-size: 13px;
    }
    
    .form-links {
        gap: 10px;
    }
    
    .form-link {
        padding: 12px 15px;
        font-size: 14px;
    }
    
    .auth-options,
    .registration-benefits {
        padding: 40px 0;
    }
    
    .auth-card {
        padding: 25px 15px; /* Уменьшены боковые отступы */
    }
    
    .auth-icon {
        width: 60px;
        height: 60px;
        font-size: 24px;
        margin-bottom: 15px;
    }
    
    .auth-card h3 {
        font-size: 18px;
    }
    
    .auth-card p {
        font-size: 14px;
    }
    
    .auth-button {
        padding: 12px 24px;
        font-size: 14px;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .benefit-card {
        padding: 25px 15px; /* Уменьшены боковые отступы */
    }
    
    .benefit-icon {
        width: 50px;
        height: 50px;
        font-size: 20px;
        margin-bottom: 12px;
    }
    
    .benefit-card h3 {
        font-size: 16px;
    }
    
    .benefit-card p {
        font-size: 14px;
    }
    
    /* Уменьшение отступов для additional-modes */
    .additional-modes {
        margin-top: 30px;
        padding-top: 30px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 12px; /* Еще меньше боковые отступы */
    }
    
    /* Еще больше увеличиваем отступ сверху на очень маленьких экранах */
    .start-hero {
        padding-top: 100px; /* Увеличен отступ сверху */
        padding-bottom: 30px;
    }
    
    .registration-form-wrapper {
        padding: 20px 12px;
        margin-bottom: 25px;
    }
    
    .form-title {
        font-size: 22px;
        margin-top: 5px;
    }
    
    .form-subtitle {
        font-size: 14px;
        padding: 0 5px;
    }
    
    .additional-modes-title,
    .section-title {
        font-size: 18px;
        margin-bottom: 10px;
    }
    
    .additional-modes-subtitle,
    .section-subtitle {
        font-size: 13px;
        margin-bottom: 20px;
    }
    
    .mode-btn {
        padding: 18px 12px;
    }
    
    .mode-btn i {
        font-size: 24px;
        margin-bottom: 10px;
    }
    
    .mode-btn span {
        font-size: 14px;
    }
    
    .mode-btn small {
        font-size: 12px;
    }
    
    .form-footer {
        margin-top: 15px;
    }
    
    .form-links {
        gap: 8px;
        margin-bottom: 15px;
    }
    
    .form-link {
        padding: 10px 12px;
        font-size: 13px;
    }
    
    .form-policy {
        font-size: 12px;
        padding: 0 5px;
    }
    
    .auth-card {
        padding: 20px 12px; /* Еще меньше боковые отступы */
    }
    
    .auth-card h3 {
        font-size: 16px;
    }
    
    .benefit-card {
        padding: 20px 12px; /* Еще меньше боковые отступы */
    }
    
    .benefit-card h3 {
        font-size: 15px;
    }
    
    /* Уменьшение отступов для input ошибок */
    .input-error {
        bottom: -26px;
        font-size: 11px;
        padding: 5px 8px;
    }
    
    .form-group.has-error {
        margin-bottom: 35px;
    }
}

@media (max-width: 360px) {
    .container {
        padding: 0 10px; /* Минимальные боковые отступы */
    }
    
    .start-hero {
        padding-top: 95px; /* Дополнительный отступ для самых маленьких экранов */
    }
    
    .registration-form-wrapper {
        padding: 18px 10px;
    }
    
    .form-title {
        font-size: 20px;
    }
    
    .form-input {
        padding: 14px 15px 14px 45px;
        font-size: 14px;
    }
    
    .mode-btn {
        padding: 16px 10px;
    }
    
    .auth-card,
    .benefit-card {
        padding: 18px 10px;
    }
}

/* Sticky CTA для страницы регистрации */
.sticky-cta.start-page {
    bottom: 20px;
}

.sticky-cta.start-page.show .btn-primary {
    background: var(--gradient-gold);
    animation: pulse-glow 2s infinite;
}

 

/* Дополнительные стили для предотвращения перекрытия меню */
body {
    padding-top: 0;
}

@media (max-width: 768px) {
    body {
        padding-top: 70px; /* Высота хедера на мобильных */
    }
    
    .start-hero {
        padding-top: 20px; /* Компенсация padding-top body */
    }
}

/* Улучшенные стили для ошибок полей ввода */
.form-group {
    position: relative;
    z-index: 0;
}

.input-error {
    z-index: 10;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Гарантия что ошибки не будут пересекаться */
.form-group.has-error + .form-group {
    margin-top: 10px;
}