/* Registration Page Styles */

/* Common Styles for all registration sections */
.page-title {
    font-size: 28px;
    color: #FF6600;
    font-weight: bold;
    text-align: center;
    margin-bottom: 30px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

/* Initial Registration Page (page_reg_type==0) */
.start-container {
    max-width: 800px;
    margin: 35px auto 0;
    padding: 0 20px;
}

.steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.step-card {
    background: linear-gradient(145deg, #2a2a2a, #1a1a1a);
    border-radius: 12px;
    padding: 25px;
    border: 1px solid #444;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    text-align: center;
    transition: all 0.3s ease;
}

.step-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.4);
    border-color: #FF6600;
}

.step-number {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: linear-gradient(145deg, #FF6600, #CC5500);
    color: white;
    font-weight: bold;
    font-size: 18px;
    border-radius: 50%;
    line-height: 40px;
    margin-bottom: 15px;
}

.step-title {
    color: #E7E0C2;
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 15px;
}

.step-description {
    color: #CCCCCC;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 20px;
}

.start-button {
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(145deg, #E7E0C2, #d7d0b2);
    color: #3D270F;
    font-weight: bold;
    font-size: 16px;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.start-button:hover {
    background: linear-gradient(145deg, #f7f0d2, #e7e0c2);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.3);
}

/* Test Section (page_reg_type==1) */
.test-container {
    max-width: 800px;
    margin: 35px auto 0;
    padding: 0 20px;
}

.test-form {
    background: linear-gradient(145deg, #2a2a2a, #1a1a1a);
    border-radius: 12px;
    padding: 30px;
    border: 1px solid #444;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    margin-bottom: 30px;
}

.question-block {
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(255,255,255,0.05);
    border-radius: 8px;
    border: 1px solid #333;
}

.question-number {
    color: #FF6600;
    font-weight: bold;
    font-size: 18px;
    margin-bottom: 15px;
}

.question-text {
    color: #E7E0C2;
    font-size: 16px;
    margin-bottom: 20px;
    line-height: 1.5;
}

.answer-option {
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.answer-radio {
    margin-top: 3px;
}

.answer-text {
    color: #E7E0C2;
    font-size: 14px;
    line-height: 1.4;
    flex: 1;
}

.submit-button {
    display: block;
    width: 100%;
    max-width: 320px;
    margin: 30px auto 0;
    padding: 15px;
    background: linear-gradient(145deg, #E7E0C2, #d7d0b2);
    color: #3D270F;
    font-weight: bold;
    font-size: 16px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.submit-button:hover {
    background: linear-gradient(145deg, #f7f0d2, #e7e0c2);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.3);
}

/* Test Failed Section (page_reg_type==2) */
.test-fail-container {
    max-width: 600px;
    margin: 35px auto 0;
    padding: 0 20px;
}

.message-container {
    background: linear-gradient(145deg, #2a2a2a, #1a1a1a);
    border-radius: 12px;
    padding: 40px;
    border: 1px solid #444;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    text-align: center;
}

.fail-title {
    color: #FF6600;
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px;
}

.fail-message {
    color: #E7E0C2;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 30px;
}

.retry-button {
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(145deg, #E7E0C2, #d7d0b2);
    color: #3D270F;
    font-weight: bold;
    font-size: 16px;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.retry-button:hover {
    background: linear-gradient(145deg, #f7f0d2, #e7e0c2);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.3);
}

/* Registration Form Section (page_reg_type==3) */
.registration-container {
    max-width: 800px;
    margin: 35px auto 0;
    padding: 0 20px;
}

.warning-box {
    background: linear-gradient(145deg, #3a1a1a, #2a1515);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #ff4444;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.warning-title {
    color: #FF6600;
    font-weight: bold;
    margin-bottom: 10px;
    font-size: 18px;
}

.warning-text {
    color: #E7E0C2;
    font-size: 14px;
    line-height: 1.5;
}

.registration-form {
    background: linear-gradient(145deg, #2a2a2a, #1a1a1a);
    border-radius: 12px;
    padding: 30px;
    border: 1px solid #444;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.form-title {
    color: #E7E0C2;
    font-size: 20px;
    margin-bottom: 25px;
    text-align: center;
}

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

.form-label {
    color: #E7E0C2;
    font-size: 14px;
    margin-bottom: 8px;
    display: block;
}

.form-input {
    width: 100%;
    max-width: 300px;
    padding: 10px;
    border: none;
    border-radius: 6px;
    background-color: #E7E0C2;
    color: #5B380F;
    font-size: 14px;
}

.form-select {
    width: 100%;
    max-width: 300px;
    padding: 10px;
    border: none;
    border-radius: 6px;
    background-color: #E7E0C2;
    color: #5B380F;
    font-size: 14px;
}

.form-hint {
    color: #CCCCCC;
    font-size: 12px;
    margin-top: 5px;
    line-height: 1.4;
}

.radio-group {
    margin: 15px 0;
}

.radio-option {
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.radio-text {
    color: #E7E0C2;
    font-size: 14px;
    line-height: 1.4;
}

.checkbox-group {
    margin: 20px 0;
}

.checkbox-option {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.checkbox-text {
    color: #E7E0C2;
    font-size: 14px;
    line-height: 1.4;
}

.generate-link {
    color: #CCCCCC;
    font-size: 12px;
    text-decoration: none;
    margin-left: 5px;
}

.generate-link:hover {
    color: #FFFFFF;
    text-decoration: underline;
}

/* Success Section (page_reg_type==4) */
.success-container {
    max-width: 700px;
    margin: 35px auto 0;
    padding: 0 20px;
}

.congrats-box {
    background: linear-gradient(145deg, #1a3a1a, #152a15);
    border-radius: 12px;
    padding: 30px;
    border: 1px solid #00cc00;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    text-align: center;
    margin-bottom: 30px;
}

.success-title {
    color: #66FF00;
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px;
}

.success-message {
    color: #E7E0C2;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 25px;
}

.credentials-box {
    background: linear-gradient(145deg, #2a2a2a, #1a1a1a);
    border-radius: 12px;
    padding: 25px;
    border: 1px solid #444;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    margin-bottom: 30px;
}

.credentials-title {
    color: #FFCC00;
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 20px;
    text-align: center;
}

.credential-item {
    margin-bottom: 15px;
    padding: 10px;
    background: rgba(255,255,255,0.05);
    border-radius: 6px;
    border: 1px solid #333;
}

.credential-label {
    color: #CCCCCC;
    font-size: 14px;
    display: block;
    margin-bottom: 5px;
}

.credential-value {
    color: #E7E0C2;
    font-size: 16px;
    font-weight: bold;
}

.email-note {
    color: #CCCCCC;
    font-size: 12px;
    font-style: italic;
    margin-top: 5px;
    line-height: 1.4;
}

.final-message {
    text-align: center;
    padding: 20px;
}

.game-wish {
    color: #FF6600;
    font-size: 24px;
    font-weight: bold;
}

/* Error Section (page_reg_type==5) */
.error-container {
    max-width: 700px;
    margin: 35px auto 0;
    padding: 0 20px;
}

.error-box {
    background: linear-gradient(145deg, #3a1a1a, #2a1515);
    border-radius: 12px;
    padding: 30px;
    border: 1px solid #ff4444;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.error-title {
    color: #FF6600;
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px;
    text-align: center;
}

.error-message {
    color: #E7E0C2;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 25px;
}

.contact-link {
    color: #E7E0C2;
    text-decoration: underline;
    transition: all 0.3s ease;
}

.contact-link:hover {
    color: #FFFFFF;
    text-decoration: none;
}

.back-link {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 20px;
    background: linear-gradient(145deg, #E7E0C2, #d7d0b2);
    color: #3D270F;
    font-weight: bold;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.back-link:hover {
    background: linear-gradient(145deg, #f7f0d2, #e7e0c2);
    transform: translateY(-2px);
}

/* Адаптивность */
@media (max-width: 768px) {
    .start-container,
    .test-container,
    .test-fail-container,
    .registration-container,
    .success-container,
    .error-container {
        padding: 0 15px;
    }
    
    .page-title {
        font-size: 24px;
    }
    
    .steps-container {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .step-card {
        padding: 20px;
    }
    
    .test-form,
    .registration-form,
    .congrats-box,
    .credentials-box,
    .error-box {
        padding: 20px;
    }
    
    .form-input,
    .form-select {
        max-width: 100%;
    }
    
    .submit-button,
    .start-button {
        width: 100%;
        max-width: 100%;
    }
}