/* Reset и базовые стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #37352f;
    line-height: 1.6;
}

/* Основной контейнер */
.registration-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 40px;
    min-height: 100vh;
    align-items: start;
}

/* Карточка регистрации */
.registration-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    position: relative;
}

/* Заголовок */
.header {
    background: linear-gradient(135deg, #2383e2 0%, #1a6cc4 100%);
    color: white;
    padding: 40px 32px;
    text-align: center;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 16px;
}

/* ИСПРАВЛЕННЫЕ стили для логотипа - крупный, без светлого фона */
.logo-icon {
    width: 64px;              /* увеличен с 48px */
    height: 64px;             /* увеличен с 48px */
    object-fit: cover;        /* заполняет всю площадь */
    border-radius: 12px;      /* увеличено скругление */
    background: transparent;  /* убран светлый фон */
    padding: 0;               /* убраны отступы */
}

.header h1 {
    font-size: 32px;
    font-weight: 700;
    margin: 0;
}

.subtitle {
    font-size: 16px;
    opacity: 0.9;
    margin: 0;
}

/* Форма регистрации */
.registration-form {
    padding: 32px;
    display: block;
}

.registration-form.hidden {
    display: none;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #37352f;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e9e9e7;
    border-radius: 8px;
    font-size: 16px;
    background: white;
    transition: all 0.2s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #2383e2;
    box-shadow: 0 0 0 3px rgba(35, 131, 226, 0.1);
}

.form-hint {
    display: block;
    font-size: 12px;
    color: #6b6866;
    margin-top: 4px;
}

/* Информация об игре */
.game-info {
    margin-top: 12px;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #2383e2;
    display: none;
}

.game-info.visible {
    display: block;
}

.game-info h4 {
    color: #2383e2;
    margin-bottom: 8px;
    font-size: 16px;
}

.game-info p {
    margin: 4px 0;
    font-size: 14px;
    color: #6b6866;
}

.game-info .highlight {
    font-weight: 600;
    color: #37352f;
}

/* Кнопка отправки */
.submit-btn {
    width: 100%;
    background: linear-gradient(135deg, #2383e2 0%, #1a6cc4 100%);
    color: white;
    border: none;
    padding: 16px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(35, 131, 226, 0.3);
}

.submit-btn:active {
    transform: translateY(0);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-icon {
    font-size: 18px;
}

/* Сообщение об успехе */
.success-message {
    display: none;
    padding: 32px;
    text-align: center;
}

.success-message.visible {
    display: block;
}

.success-icon {
    font-size: 64px;
    margin-bottom: 16px;
}

.success-message h3 {
    color: #2383e2;
    margin-bottom: 12px;
    font-size: 24px;
}

.success-message p {
    color: #6b6866;
    margin-bottom: 24px;
    font-size: 16px;
}

.btn-secondary {
    background: #e9e9e7;
    color: #37352f;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-secondary:hover {
    background: #d9d9d7;
}

/* Информационная секция */
.info-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.info-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.info-card h3 {
    color: #2383e2;
    margin-bottom: 16px;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.info-card ol,
.info-card ul {
    margin-left: 20px;
}

.info-card li {
    margin-bottom: 8px;
    color: #37352f;
}

.info-card p {
    color: #6b6866;
    line-height: 1.6;
}

/* Уведомления */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 2000;
    display: none;
    min-width: 300px;
    max-width: 500px;
}

.notification.visible {
    display: block;
}

.notification-content {
    background: #2383e2;
    color: white;
    padding: 16px 20px;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.notification.success .notification-content {
    background: #52c41a;
}

.notification.error .notification-content {
    background: #ff4d4f;
}

.notification-close {
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    margin-left: 12px;
    padding: 0;
    opacity: 0.8;
}

.notification-close:hover {
    opacity: 1;
}

/* Адаптивность */
@media (max-width: 768px) {
    .registration-container {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 16px;
    }

    .header {
        padding: 32px 24px;
    }

    .header h1 {
        font-size: 28px;
    }

    .logo {
        flex-direction: column;
        gap: 12px;
    }

    /* ИСПРАВЛЕННЫЙ логотип для мобильных - тоже без фона */
    .logo-icon {
        width: 56px;              /* увеличен с 40px */
        height: 56px;             /* увеличен с 40px */
        object-fit: cover;        /* заполняет всю площадь */
        border-radius: 10px;      /* скругление */
        background: transparent;  /* убран светлый фон */
        padding: 0;               /* убраны отступы */
    }

    .registration-form,
    .success-message {
        padding: 24px;
    }

    .info-card {
        padding: 20px;
    }

    .notification {
        left: 16px;
        right: 16px;
        top: 16px;
    }
}

/* Стили для полей с ошибками */
.field-error {
    color: #ff4d4f;
    font-size: 12px;
    margin-top: 4px;
}

/* Анимации */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.registration-card {
    animation: fadeIn 0.5s ease-out;
}

.info-card {
    animation: fadeIn 0.6s ease-out;
}

.notification {
    animation: fadeIn 0.3s ease-out;
}

/* Стили загрузки */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #2383e2;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}