body {
    background-color: #2e2e2e;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: 'Segoe UI', Arial, sans-serif;
}

/* Header & Footer shared style */
header, footer {
    width: 100%;
    background-color: #141414;
    box-sizing: border-box;
}

header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 24px;
    border-bottom: 3px solid transparent;
    border-image: linear-gradient(to right, transparent, #81242d, transparent) 1;
    position: fixed;
    top: 0;
}

.game-title {
    color: #81242d;
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 12px;
}

nav ul li { margin: 0; padding: 0; }

nav ul li h1 {
    margin: 0;
    padding: 0;
    font-size: 1rem;
    font-weight: 600;
}

nav ul li h1 a {
    display: block;
    padding: 10px 20px;
    text-decoration: none;
    color: #aaaaaa;
    border: 2px solid #81242d;
    border-radius: 8px;
    background: linear-gradient(to bottom, #141414, #1a1a1a);
    box-shadow: 0 4px 6px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.08);
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}

nav ul li h1 a:hover {
    background: linear-gradient(to bottom, #81242d, #750d0d);
    color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.1);
}

nav ul li h1 a:active {
    background: linear-gradient(to bottom, #750d0d, #81242d);
    box-shadow: 0 1px 2px rgba(0,0,0,0.5), inset 0 2px 4px rgba(0,0,0,0.3);
    transform: translateY(1px);
}

.page-content {
    flex: 1;
    display: flex;
    align-items: stretch;
    padding: 30px;
    box-sizing: border-box;
    padding-top: 90px;
}

.about {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: stretch;
    padding: 0;
    width: 100%;
}

.about-card {
    background-color: #141414;
    border: 1px solid #444;
    border-top: 3px solid #81242d;
    border-radius: 10px;
    padding: 48px;
    width: 100%;
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}

.about-title {
    color: #81242d;
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin: 0 0 16px 0;
}

.about-desc {
    color: #aaaaaa;
    font-size: 0.95rem;
    line-height: 1.8;
    margin: 0 0 36px 0;
    border-bottom: 1px solid #444;
    padding-bottom: 28px;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.about-block {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.about-block-title {
    color: #aaaaaa;
    background-color: #81242d;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    width: fit-content;
}

.about-block p {
    color: #aaaaaa;
    font-size: 0.875rem;
    line-height: 1.7;
    margin: 0;
}

/* Login section */
.login {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: stretch;
    padding: 0;
    min-width: 320px;
}

.form-container {
    background-color: #141414;
    border: 1px solid #444;
    border-top: 3px solid #81242d;
    border-radius: 10px;
    padding: 48px;
    width: 100%;
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}

.form-title {
    color: #81242d;
    font-size: 2rem;
    font-weight: 700;
    text-transform: uppercase;
    margin: 0 0 24px 0;
    border-bottom: 3px solid #81242d;
    padding-bottom: 12px;
}

.form-label {
    color: #aaaaaa;
    font-size: 1.1rem;
    line-height: 1.7;
    margin-left: 0.5rem;
    border-bottom: 1px solid #aaaaaa;
}

.form-row {
    display: flex;
    flex-direction: column;
    margin-bottom: 8px;
}
.form-row p {
    position: relative;
    color: #aaaaaa;
    font-size: 1.4rem;
    line-height: 1.7;
    margin-left: 0.5rem;
    border-bottom: 1px solid #aaaaaa;
}

.form-row input[type="text"],
.form-row input[type="password"] {
    padding: 10px 20px;
    border-radius: 1em;
    margin: 5px;
    font-size: 1.2rem;
    background-color: #fff;
    border: 1px solid #444;
    color: #000;
    outline: none;
    transition: border-color 0.2s;
}

.form-row input[type="text"]:focus,
.form-row input[type="password"]:focus {
    border-color: #81242d;
}


.password-toggle p {
    color: #aaaaaa;
    font-size: 0.95rem;
    margin: 4px 0.5rem;
    display: flex;
    align-items: center;
    gap: 8px;
    border: none;
}

.password-toggle-input {
    width: 18px;
    height: 18px;
    accent-color: #81242d;
    cursor: pointer;
}

button[type="submit"] {
    border-radius: 1em;
    margin: 20px 5px 5px;
    font-size: 1.3rem;
    padding: 14px;
    width: calc(100% - 10px);
    color: #aaaaaa;
    border: 2px solid #81242d;
    background: linear-gradient(to bottom, #141414, #1a1a1a);
    cursor: pointer;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}

button[type="submit"]:hover {
    background: linear-gradient(to bottom, #81242d, #750d0d);
    color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.1);
    font-weight: bold;
}

button[type="submit"]:active {
    background: linear-gradient(to bottom, #750d0d, #81242d);
    box-shadow: 0 4px 6px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.08);
    transform: translateY(1px);
}

/* Login form inside about-block */
.about-block form {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
}

.about-block .form-row {
    display: flex;
    flex-direction: column;
}

.about-block .form-label {
    color: #aaaaaa;
    font-size: 0.8rem;
    margin-bottom: 2px;
}

.about-block .input-email,
.about-block .input-password {
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    background-color: #fff;
    border: 1px solid #444;
    color: #cccccc;
    outline: none;
    transition: border-color 0.2s;
}

.about-block .input-email:focus,
.about-block .input-password:focus {
    border-color: #81242d;
}

.about-block .password-toggle-input {
    width: 14px;
    height: 14px;
    accent-color: #81242d;
    cursor: pointer;
}

.about-block button[type="submit"] {
    margin-top: 8px;
    padding: 8px;
    font-size: 0.85rem;
    border-radius: 6px;
    width: 100%;
    color: #aaaaaa;
    border: 2px solid #81242d;
    background: linear-gradient(to bottom, #141414, #1a1a1a);
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.about-block button[type="submit"]:hover {
    background: linear-gradient(to bottom, #81242d, #750d0d);
    color: #fff;
    font-weight: bold;
}

.about-block button[type="submit"]:active {
    background: linear-gradient(to bottom, #750d0d, #81242d);
    transform: translateY(1px);
}

p.input-error, .form-row .input-error {
    margin: 0 0.5rem;
    color: #cf1326;
    font-weight: bold;
    font-size: 1rem;
    display: none;
    border: none;
    text-decoration: none;
}

.button-disabled, .button-disabled:hover, .button-disabled:focus {
    background: #787676 !important;
    color: #fff !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.1) !important;
    font-weight: normal !important;
    border: 1px #787676 solid !important;
}