/* Базовые стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
	background: linear-gradient(rgb(26 26 46 / 72%)), url(/Image/fon.webp) center / cover no-repeat fixed;
    color: #fff;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('/Image/fon.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.15;
    z-index: -1;
}

/* Стеклянный эффект */
.glass-panel {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.glass-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 25px;
    transition: all 0.3s ease;
}

.glass-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

/* Шапка */
.main-header {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.server-title {
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(90deg, #4cc9f0, #4361ee);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 10px rgba(76, 201, 240, 0.3);
}

.nav-links {
    display: flex;
    gap: 25px;
}

.nav-link {
    color: #fff;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 12px;
    transition: all 0.3s ease;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.05);
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.nav-link.launcher {
    background: linear-gradient(90deg, #4361ee, #3a0ca3);
    color: white;
}

.nav-link.launcher:hover {
    background: linear-gradient(90deg, #3a0ca3, #4361ee);
    box-shadow: 0 4px 20px rgba(67, 97, 238, 0.4);
}

/* Уведомления */
.notification-area {
    position: fixed;
    top: 100px;
    right: 20px;
    z-index: 9999;
    max-width: 400px;
    width: 100%;
}

.notification-card {
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.9), rgba(255, 77, 77, 0.9));
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
    animation: slideIn 0.3s ease;
    border-left: 5px solid #ff4d4d;
    box-shadow: 0 6px 20px rgba(255, 77, 77, 0.3);
}

.notification-card.success {
    background: linear-gradient(135deg, rgba(76, 201, 240, 0.9), rgba(67, 97, 238, 0.9));
    border-left: 5px solid #4361ee;
    box-shadow: 0 6px 20px rgba(67, 97, 238, 0.3);
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Основной контент */
.main-wrapper {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.welcome-section {
    text-align: center;
    // max-width: 800px;
    width: 100%;
}

.welcome-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 20px;
    background: linear-gradient(90deg, #4cc9f0, #4361ee, #404bda);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 4px 20px rgba(76, 201, 240, 0.3);
}

.welcome-subtitle {
    font-size: 1.2rem;
    color: #a0a0c0;
    line-height: 1.6;
    margin-bottom: 30px;
}

/* Кнопки действий */
.action-buttons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    width: 100%;
    max-width: 800px;
}

.action-btn-main {
    padding: 25px;
    border: none;
    border-radius: 16px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    color: white;
    text-align: center;
    min-height: 180px;
}

.action-btn-main.login {
    background: linear-gradient(135deg, #4361ee, #3a0ca3);
}

.action-btn-main.register {
    background: linear-gradient(135deg, #4cc9f0, #4361ee);
}

.action-btn-main.recover {
    background: linear-gradient(135deg, #7209b7, #560bad);
}

.action-btn-main:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.btn-icon {
    width: 48px;
    height: 48px;
    fill: white;
}

/* Попапы */
.popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.popup-overlay.active {
    display: flex;
}

.popup-content {
    width: 90%;
    max-width: 500px;
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 40px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    position: relative;
    animation: popupAppear 0.3s ease;
}

@keyframes popupAppear {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.popup-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    line-height: 1;
    padding: 0;
    margin: 0;
}

.popup-close:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.1); /* Вместо вращения - увеличение */
}

.popup-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 30px;
    text-align: center;
    background: linear-gradient(90deg, #4cc9f0, #4361ee);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Формы */
.form-group {
    margin-bottom: 25px;
}

.form-label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #a0a0c0;
    font-size: 1rem;
}

.form-input {
    width: 100%;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.07);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #fff;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: #4361ee;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.2);
}

.captcha-container {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.captcha-image {
    border-radius: 8px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
}

.submit-btn {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, #4cc9f0, #4361ee);
    border: none;
    border-radius: 14px;
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.submit-btn:hover {
    background: linear-gradient(135deg, #4361ee, #3a0ca3);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(67, 97, 238, 0.4);
}

/* Футер */
.main-footer {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(15px);
    padding: 15px 0;
    margin-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.online-status {
    font-size: 1.1rem;
    font-weight: 600;
    color: #4cc9f0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.online-dot {
    width: 12px;
    height: 12px;
    background: #4cc9f0;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* Информация о сервере */
.server-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    width: 100%;
    // max-width: 800px;
}

.info-card {
    padding: 20px;
    text-align: center;
    width: 100%;
    overflow: hidden; /* Предотвращаем выход контента за границы */
}

.info-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 15px;
    fill: #4cc9f0;
}

.info-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #4cc9f0;
    word-wrap: break-word; /* Перенос длинных слов */
}

.info-text {
    color: #a0a0c0;
    font-size: 0.95rem;
    line-height: 1.5;
    word-wrap: break-word; /* Перенос длинных слов */
}

/* Иконки */
.icon {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* Валидация */
.input-error {
    border-color: #ff4d4d !important;
    background: rgba(255, 77, 77, 0.1) !important;
}

.error-message {
    color: #ff4d4d;
    font-size: 0.9rem;
    margin-top: 5px;
    display: none;
}

.input-error + .error-message {
    display: block;
}

/* Общие стили для обеих кнопок */
.email-btn,
.telegram-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 15px;
    padding: 10px 20px;
    color: white;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    width: 100%;
    box-sizing: border-box;
    border: none;
    cursor: pointer;
}

/* Стили для кнопки Email (синий градиент) */
.email-btn {
    background: linear-gradient(135deg, #4cc9f0, #4361ee);
    box-shadow: 0 4px 15px rgba(67, 97, 238, 0.2);
}

.email-btn:hover {
    background: linear-gradient(135deg, #4361ee, #3a0ca3);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(67, 97, 238, 0.3);
}

/* Стили для кнопки Telegram (бирюзовый градиент) */
.telegram-btn {
    background: linear-gradient(135deg, #0088cc, #0077b5);
    box-shadow: 0 4px 15px rgba(0, 136, 204, 0.2);
}

.telegram-btn:hover {
    background: linear-gradient(135deg, #0077b5, #0066a3);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 136, 204, 0.3);
}
.email-link {
    color: inherit; /* Наследует цвет от родительского элемента */
    text-decoration: none; /* Убирает подчеркивание */
    transition: color 0.3s ease; /* Плавное изменение цвета при наведении */
}

.email-link:hover {
    color: #007bff; /* Цвет при наведении (синий) */
    text-decoration: underline; /* Подчеркивание при наведении */
}

/* Адаптивность */
@media (max-width: 1024px) {
    .header-container {
        flex-direction: column;
        gap: 20px;
    }
    
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .welcome-title {
        font-size: 2.5rem;
    }
    
    .server-info {
        grid-template-columns: repeat(2, 1fr); /* 2 колонки на планшетах */
    }
	.form-group {
		margin-bottom: 5px;
	}
	.popup-title{
		margin-bottom: 15px;
	}	
}

@media (max-width: 768px) {
    .main-wrapper {
        margin: 20px auto;
        padding: 0 15px;
        gap: 30px;
    }
    
    .glass-panel {
        padding: 20px;
        margin: 0 10px;
    }
    
    .glass-card {
        padding: 20px;
    }
    
    .nav-links {
        gap: 10px;
    }
    
    .nav-link {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
    
    .server-title {
        font-size: 1.5rem;
        text-align: center;
    }
    
    .welcome-title {
        font-size: 2rem;
        line-height: 1.3;
    }
    
    .welcome-subtitle {
        font-size: 1rem;
        line-height: 1.5;
        padding: 0 10px;
    }
    
    .action-buttons-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .action-btn-main {
        min-height: 140px;
        padding: 20px;
        font-size: 1rem;
    }
    
    .server-info {
        grid-template-columns: 1fr; /* 1 колонка на мобилках */
        gap: 15px;
        max-width: 100%;
    }
    
    .info-card {
        padding: 15px;
        margin: 0;
    }
    
    .info-title {
        font-size: 1rem;
    }
    
    .info-text {
        font-size: 0.9rem;
    }
    
    .footer-container {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    /* Исправление для фона на мобилках */
    body::before {
        background-attachment: scroll;
    }
}

@media (max-width: 480px) {
    .popup-content {
        padding: 20px;
        width: 95%;
        margin: 0 10px;
    }
    
    .form-input {
        padding: 14px 16px;
        font-size: 0.95rem;
    }
    
    .welcome-title {
        font-size: 1.8rem;
    }
    
    .welcome-subtitle {
        font-size: 0.95rem;
    }
    
    .action-btn-main {
        min-height: 130px;
        padding: 18px;
    }
    
    .server-info {
        gap: 12px;
    }
    
    .info-card {
        padding: 12px;
    }
    
    .info-icon {
        width: 35px;
        height: 35px;
        margin-bottom: 10px;
    }
    
    .notification-area {
        top: 80px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
    
    .notification-card {
        padding: 15px;
        font-size: 0.9rem;
    }
}

/* Для очень маленьких экранов */
@media (max-width: 360px) {
    .welcome-title {
        font-size: 1.6rem;
    }
    
    .action-btn-main {
        min-height: 120px;
        padding: 15px;
    }
    
    .btn-icon {
        width: 40px;
        height: 40px;
    }
    
    .nav-link {
        padding: 6px 12px;
        font-size: 0.85rem;
    }
    
    .info-title {
        font-size: 0.95rem;
    }
    
    .info-text {
        font-size: 0.85rem;
    }
}

/* Предотвращение горизонтального скролла */
html, body {
    max-width: 100%;
    overflow-x: hidden;
}



/* Исправление для длинного текста в карточках */
.info-card,
.glass-card {
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

html {
    height: 100%;
}

body {
    min-height: 100%;
    position: relative;
}

.main-wrapper {
    min-height: calc(100vh - 200px); /* Подстройте под высоту шапки+футера */
    padding-bottom: 100px; /* Высота футера */
}

.main-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
}