/* ===== ПОЛНОСТЬЮ ОБНОВЛЁННЫЙ СТИЛЬ СТРАНИЦЫ РЕГИСТРАЦИИ ===== */
.reg-page { position: relative; overflow: hidden; }
.reg-page::before {
    content: 'ᚠ ᚢ ᚦ ᚨ ᚱ ᚲ ᚷ ᚹ ᚺ ᚾ ᛁ ᛃ ᛇ ᛈ ᛉ ᛊ ᛏ ᛒ ᛖ ᛗ ᛚ ᛜ ᛞ ᛟ';
    position: absolute; top: -50px; left: 0; width: 200%;
    font-size: 80px; color: rgba(212, 175, 55, 0.04); white-space: nowrap;
    animation: runesFloat 60s linear infinite; pointer-events: none; z-index: 0;
}
@keyframes runesFloat { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
.reg-page .reg-card {
    position: relative; z-index: 1;
    background: linear-gradient(145deg, rgba(44,30,21,0.98), rgba(26,17,12,0.98));
    border: 2px solid #a0522d; border-radius: 30px; padding: 30px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.8), inset 0 0 30px rgba(212,175,55,0.1);
    max-width: 1400px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 40px;
}
.reg-page .reg-card::before {
    content: "💀🔥"; position: absolute; bottom: 10px; right: 10px;
    font-size: 80px; opacity: 0.03; pointer-events: none;
}
.reg-page .form-container { flex: 2; min-width: 280px; }
.reg-page .preview-container {
    flex: 1; min-width: 320px; text-align: center;
    background: rgba(0,0,0,0.4); border-radius: 30px; padding: 20px;
    border: 1px solid #8b5a2b; backdrop-filter: blur(4px);
    position: relative; z-index: 1;
}
.reg-page .preview-image {
    width: 100%; max-width: 400px; border-radius: 20px;
    border: 3px solid #d4af37; box-shadow: 0 0 25px rgba(212,175,55,0.5);
    background: #2b1e0e; margin-bottom: 15px; transition: opacity 0.3s ease;
}
.reg-page .preview-logo {
    width: 80px; height: 80px; margin-top: 10px; border-radius: 50%;
    border: 2px solid #b8860b; background: #1f140c; padding: 5px;
    transition: transform 0.3s ease;
}
.reg-page .race-badge {
    display: flex; align-items: center; justify-content: center; gap: 12px;
    margin-bottom: 15px; background: rgba(0,0,0,0.3);
    border-radius: 40px; padding: 8px 16px; border: 1px solid #b8860b;
}
.reg-page .race-badge img { width: 40px; height: 40px; filter: drop-shadow(0 0 5px gold); }
.reg-page .race-badge span { font-size: 1.2rem; font-weight: 700; color: #ffd966; text-shadow: 0 0 5px rgba(255,215,0,0.3); }
.reg-page .race-lore {
    font-size: 0.85rem; color: #e6d5b8; margin-top: 10px; padding: 12px;
    background: rgba(0,0,0,0.5); border-radius: 16px;
    border-left: 4px solid #d4af37; text-align: left; line-height: 1.5;
}
.reg-page .page-title {
    background: linear-gradient(145deg, rgba(44,30,21,0.95), rgba(26,17,12,0.95));
    border: 2px solid #a0522d; border-radius: 20px; padding: 20px 30px;
    margin-bottom: 30px; position: relative; z-index: 1;
}
.reg-page .page-title h1 { font-size: 2.2rem; color: #ffd966; text-shadow: 0 2px 4px rgba(0,0,0,0.5); margin-bottom: 8px; }
.reg-page .page-title p { color: #e6d5b8; font-size: 1.1rem; opacity: 0.9; }
.reg-page .form-group { margin-bottom: 20px; position: relative; }
.reg-page .form-label {
    display: flex; align-items: center; gap: 8px; color: #ffd966;
    font-weight: 600; margin-bottom: 8px; font-size: 0.9rem;
    text-transform: uppercase; letter-spacing: 0.5px;
}
.reg-page .form-label .help-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 18px; height: 18px; background: #3f2e22; border-radius: 50%;
    color: #ffd966; font-size: 12px; cursor: help;
    border: 1px solid #b8860b; transition: all 0.2s;
}
.reg-page .form-label .help-icon:hover { background: #b8860b; color: #1f140c; border-color: #ffd700; }
.reg-page .form-input {
    width: 100%; background: #3f2e22; border: 2px solid #8b5a2b;
    border-radius: 40px; padding: 12px 20px 12px 45px;
    color: #fff; font-size: 1rem; transition: all 0.2s;
    background-repeat: no-repeat; background-position: 15px center; background-size: 20px;
}
.reg-page .form-input:focus { outline: none; border-color: #ffd700; box-shadow: 0 0 15px rgba(255,215,0,0.4); }
.reg-page .form-input.error { border-color: #ff4444; box-shadow: 0 0 15px rgba(255,68,68,0.3); }
#Email { background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23b8860b"><path d="M20 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4l-8 5-8-5V6l8 5 8-5v2z"/></svg>'); }
#Pass, #Pass2 { background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23b8860b"><path d="M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2z"/></svg>'); }
#nick { background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23b8860b"><path d="M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"/></svg>'); }
.reg-page .password-wrapper { position: relative; }
.reg-page .toggle-password {
    position: absolute; right: 15px; top: 50%; transform: translateY(-50%);
    background: none; border: none; color: #b8860b; cursor: pointer;
    font-size: 1.2rem; padding: 4px; transition: color 0.2s;
}
.reg-page .toggle-password:hover { color: #ffd700; }
.reg-page .password-strength {
    margin-top: 8px; font-size: 0.8rem; display: flex;
    align-items: center; gap: 10px; flex-wrap: wrap;
}
.reg-page .strength-bar { flex: 1; height: 4px; background: #3f2e22; border-radius: 2px; overflow: hidden; min-width: 80px; }
.reg-page .strength-bar div { height: 100%; transition: width 0.3s, background 0.3s; }
.reg-page .strength-text { font-weight: 600; min-width: 50px; text-align: right; }
.reg-page .error-message {
    background: rgba(255,68,68,0.15); border: 2px solid #ff4444;
    border-radius: 40px; padding: 8px 15px; margin-top: 5px;
    color: #ff6666; font-size: 0.9rem; animation: fadeIn 0.3s ease;
}
.reg-page .submit-button {
    background: linear-gradient(145deg, #a0522d, #8b4513);
    border: 2px solid #b8860b; border-radius: 40px; padding: 14px 30px;
    color: #ffd966; font-weight: 700; font-size: 1.1rem;
    text-transform: uppercase; cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    width: 100%; position: relative;
    display: flex; align-items: center; justify-content: center; gap: 12px;
}
.reg-page .submit-button:hover:not(:disabled) {
    background: linear-gradient(145deg, #8b4513, #5d2906);
    border-color: #ffd700; transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(255,215,0,0.5); color: #fff;
}
.reg-page .submit-button:disabled { opacity: 0.5; cursor: not-allowed; filter: grayscale(0.3); }
.reg-page .submit-button .spinner {
    display: none; width: 20px; height: 20px;
    border: 2px solid #ffd966; border-top-color: transparent;
    border-radius: 50%; animation: spin 0.8s linear infinite;
}
.reg-page .submit-button.loading .spinner { display: inline-block; }
.reg-page .submit-button.loading .btn-text { opacity: 0.7; }
@keyframes spin { to { transform: rotate(360deg); } }
.reg-page .agreement {
    margin-top: 20px; color: #b8a58e; font-size: 0.9rem;
    text-align: center; line-height: 1.6;
}
.reg-page .agreement a { color: #b8860b; text-decoration: underline; transition: color 0.2s; }
.reg-page .agreement a:hover { color: #ffd700; }
.reg-page .nick-examples {
    margin-top: 12px; background: rgba(0,0,0,0.5); border-radius: 16px;
    padding: 15px; border: 1px solid #b8860b; color: #e6d5b8; animation: fadeIn 0.3s ease;
}
.reg-page .nick-examples a {
    display: inline-block; background: #3f2e22; border: 1px solid #8b5a2b;
    border-radius: 30px; padding: 4px 14px; margin: 3px 5px 3px 0;
    color: #ffd966; text-decoration: none; transition: all 0.2s; font-size: 0.9rem;
}
.reg-page .nick-examples a:hover {
    background: #b8860b; color: #1f140c;
    border-color: #ffd700; transform: translateY(-1px);
}
.reg-page .char-counter {
    text-align: right; font-size: 0.75rem; color: #b8a58e;
    margin-top: 4px; transition: color 0.2s;
}
.reg-page .char-counter.error { color: #ff6666; }
.reg-page .referral-banner {
    background: rgba(212,175,55,0.15); border: 2px solid #b8860b;
    border-radius: 16px; padding: 15px 20px; margin-bottom: 20px;
    color: #ffd966; text-align: center; animation: fadeIn 0.5s ease;
    display: flex; align-items: center; justify-content: center;
    gap: 12px; flex-wrap: wrap; position: relative; z-index: 1;
}
.reg-page .referral-banner i { font-size: 1.5rem; color: #ffd700; }
.reg-page .referral-banner strong { color: #fff; }
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}
@media (max-width: 992px) {
    .reg-page .preview-image { max-width: 280px; }
    .reg-page .page-title h1 { font-size: 1.8rem; }
}
@media (max-width: 768px) {
    .reg-page .reg-card { flex-direction: column; padding: 20px; }
    .reg-page .preview-container { order: -1; margin-bottom: 20px; max-width: 100%; }
    .reg-page .form-input { padding: 10px 15px 10px 40px; background-size: 16px; background-position: 12px center; }
    .reg-page .page-title { padding: 15px 20px; }
    .reg-page .page-title h1 { font-size: 1.5rem; }
    .reg-page .race-badge { flex-wrap: wrap; }
}
@media (max-width: 480px) {
    .reg-page .reg-card { padding: 15px; }
    .reg-page .preview-image { max-width: 200px; }
    .reg-page .submit-button { font-size: 1rem; padding: 12px 20px; }
    .reg-page .form-label { font-size: 0.8rem; }
}

/* ===== В КОНЕЦ reg.css ===== */

/* Превью-заголовок и цитата — базовые стили (тёмная тема по умолчанию) */
.reg-page .preview-title {
    color: #ffd966;
    margin-bottom: 15px;
    text-align: center;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.reg-page .preview-quote {
    font-size: 0.8rem;
    margin-top: 15px;
    color: #b8a58e;
    font-style: italic;
    text-align: center;
    line-height: 1.6;
}