@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@700&family=Roboto:wght@400;500&display=swap');
body {
    background: #151010 url('../images/bg.png') center/cover repeat-y;
    color: #e7e7e7;
    font-family: 'Roboto', Arial, sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    margin: 0;
}
.site-header {
    width: 100%;
    background: linear-gradient(90deg, #241414 70%, #570a13 100%);
    color: #e7e7e7;
    box-shadow: 0 2px 16px #1a050880;
    border-bottom: 2px solid #b7121c;
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 999;
}
.header-inner {
    max-width: 1150px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 24px;
    min-height: 58px;
    gap: 10px;
}
.header-logo {
    display: flex;
    align-items: center;
    font-family: 'Oswald', Impact, Arial, sans-serif;
    font-size: 1.38em;
    color: #e7d8c3;
    letter-spacing: 2px;
    text-decoration: none;
    font-weight: 700;
    gap: 10px;
}
.header-logo img {
    display: inline-block;
    height: 38px;
    width: auto;
    margin-right: 6px;
    vertical-align: middle;
    border-radius: 5px;
    box-shadow: 0 0 8px #100;
    background: #181818;
}
.header-center {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}
.lang-switch select {
    background: #1c171a;
    color: #fff;
    border: 2px solid #242124;
    border-radius: 6px;
    padding: 6px 14px 6px 32px;
    font-size: 1.02em;
    font-family: 'Roboto', Arial, sans-serif;
    appearance: none;
    cursor: pointer;
    margin-right: 8px;
    min-width: 122px;
    background-image: url('data:image/svg+xml;utf8,<svg fill="white" width="18" height="18" viewBox="0 0 24 24"><path d="M7 10l5 5 5-5z"/></svg>');
    background-repeat: no-repeat;
    background-position: 10px 50%;
}
.lang-switch select:focus {
    border-color: #b7121c;
}
.header-right {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.07em;
}
.players-online b {
    color: #79ff86;
    font-weight: 700;
    letter-spacing: 1px;
}
.players-total b {
    color: #e7e7e7;
    font-weight: 600;
}
@media (max-width: 850px) {
    .header-inner { flex-direction: column; align-items: stretch; gap: 3px; padding: 10px 8vw; }
    .header-right { justify-content: flex-end; }
    .header-center { justify-content: flex-start; margin: 7px 0;}
}
@media (max-width: 450px) {
    .header-inner { padding: 10px 3vw; }
    .header-logo span { font-size: 1.07em; }
}
.logo {
    margin-top: 44px;
    margin-bottom: 10px;
}
.logo img {
    width: 420px;
    max-width: 94vw;
    border-radius: 10px;
    box-shadow: 0 0 36px 2px #b7121c60;
    display: block;
    margin: 0 auto;
}

.app-card {
    background: rgba(20, 15, 20, 0.98);
    border: 2px solid #b7121c;
    border-radius: 16px;
    padding: 40px 38px 28px 38px;
    box-shadow: 0 0 56px 12px #000a, 0 4px 48px #2b0505b0 inset;
    width: 430px;
    max-width: 98vw;
    margin-bottom: 34px;
}

.app-card h2 {
    font-family: 'Oswald', Impact, Arial, sans-serif;
    font-size: 2.2rem;
    margin: 0 0 15px 0;
    text-align: center;
    color: #e7d8c3;
    letter-spacing: 2px;
    text-shadow: 0 3px 18px #6b0006c0, 0 1px 0 #000;
}

.app-card p {
    text-align: center;
    color: #e7e7e7;
    font-size: 1.08em;
    margin-bottom: 18px;
    margin-top: 0;
}

.app-form label {
    display: block;
    margin: 14px 0 7px 2px;
    font-weight: 500;
    color: #e7c9b6;
    letter-spacing: 1px;
    font-size: 1.09em;
}

.app-form input, .app-form select, .app-form textarea {
    width: 100%;
    padding: 14px 15px;
    border-radius: 9px;
    background: #1c171a;
    color: #fff;
    border: 2px solid #242124;
    font-size: 1.13em;
    outline: none;
    transition: border-color .18s, box-shadow .18s;
    margin-bottom: 4px;
    box-sizing: border-box;
}

.app-form textarea {
    min-height: 90px;
    resize: vertical;
}

.app-form input:focus,
.app-form select:focus,
.app-form textarea:focus {
    border-color: #b7121c;
    box-shadow: 0 0 6px 2px #b7121c40;
}

.app-form .form-info {
    min-height: 18px;
    margin-bottom: 6px;
    font-size: 0.98em;
    color: #ebdca6;
    padding-left: 2px;
    padding-top: 2px;
}
.app-form .form-info.error { color: #ff3030; }
.app-form .form-info.success { color: #64e964; }
.app-form .form-info.info { color: #e7e7e7; }
.app-form .form-info.warning { color: #f7ce50; }

.app-form .form-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 14px 0 7px 2px;
}

.app-form .form-checkbox input[type="checkbox"] {
    width: auto;
    margin: 0;
    padding: 0;
    cursor: pointer;
}

.app-form .form-checkbox label {
    margin: 0;
    cursor: pointer;
    font-weight: 500;
    color: #e7c9b6;
    letter-spacing: 1px;
    font-size: 1.09em;
}

.app-form .captcha {
    margin: 18px 0 14px 0;
    display: flex;
    align-items: center;
    gap: 14px;
}

.app-form button {
    width: 100%;
    padding: 15px 0;
    margin-top: 12px;
    background: linear-gradient(90deg, #c9211e 75%, #7b0f1a 100%);
    color: #fff;
    font-size: 1.13em;
    font-family: 'Oswald', Impact, Arial, sans-serif;
    border: none;
    border-radius: 8px;
    box-shadow: 0 5px 18px #b7121c40, 0 1px 0 #2a0005;
    cursor: pointer;
    letter-spacing: 2px;
    transition: background .16s, box-shadow .13s;
    font-weight: 700;
}

.app-form button:hover {
    background: linear-gradient(90deg, #a51017 80%, #ef4c44 100%);
    box-shadow: 0 0 32px #7c1618bb;
}

.app-card .alt-contact,
.app-card .login-link,
.app-card .register-link {
    text-align: center;
    margin-top: 16px;
    font-size: .98em;
    color: #b9b9b9;
}
.app-card .alt-contact a,
.app-card .login-link a,
.app-card .register-link a {
    color: #e42838;
    text-decoration: none;
    transition: color .12s;
    font-weight: 500;
}
.app-card .alt-contact a:hover,
.app-card .login-link a:hover,
.app-card .register-link a:hover {
    color: #fff;
    text-shadow: 0 0 5px #ff384a;
}

.app-card .forgot-link {
    display: block;
    text-align: right;
    margin-top: 6px;
    margin-bottom: 4px;
    font-size: .97em;
}
.app-card .forgot-link a {
    color: #8b8b8b;
    text-decoration: none;
    transition: color .13s;
}
.app-card .forgot-link a:hover {
    color: #ff3b3b;
}

@media (max-width: 650px) {
    .app-card { padding: 12px 2vw 10px 2vw; width: 98vw;}
    .logo img { width: 97vw; }
}

.footer {
    width: 100%;
    background: linear-gradient(90deg, #1a1314 70%, #3c0a10 100%);
    color: #ccc;
    padding: 28px 0 20px 0;
    text-align: center;
    font-size: 1em;
    border-top: 2px solid #b7121c;
    margin-top: 24px;
    box-shadow: 0 -8px 44px #2b050570;
    letter-spacing: 1px;
}
.footer-inner {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px 20px;
}
.footer a {
    color: #e42838;
    text-decoration: none;
    font-weight: 500;
    transition: color .18s;
}
.footer a:hover {
    color: #fff;
    text-shadow: 0 0 7px #ff384a;
}
.footer .divider {
    color: #b7121c;
    font-weight: bold;
    margin: 0 4px;
}
.main-content {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}
@media (max-width: 650px) {
    .footer-inner {
        flex-direction: column;
        gap: 5px 0;
    }
    .footer {
        font-size: .96em;
        padding: 20px 0 14px 0;
    }
}
