/* Container for the form */
.form-section.form-spad.form-page .form-container {
    max-width: 400px !important;
    margin: 0 auto !important;
    display: flex;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    background: #222;
    border-radius: 10px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.15);
    padding: 24px 16px 16px;
    box-sizing: border-box !important;
    color: #fff;
}

/* Each form row */
.form-row-element {
    margin: 12px 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Labels */
label {
    color: #fff;
    font-weight: 600;
    margin-bottom: 6px;
    display: inline-block;
    font-size: 0.9rem;
    transition: color 0.2s;
}

/* Inputs and checkbox */
input[type="email"],
input[type="password"] {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #444;
    border-radius: 5px;
    background: #2c2c2c;
    color: #fff;
    font-size: 1rem;
    margin-top: 4px;
    box-sizing: border-box;
    transition: border 0.2s;
}

input[type="email"]:focus,
input[type="password"]:focus {
    border: 1.5px solid #40abf5;
    outline: none;
}

input[type="checkbox"] {
    accent-color: #40abf5;
    width: 16px;
    height: 16px;
    margin-right: 8px;
}

/* Terms label link */
label a {
    color: #ffb320;
    text-decoration: underline;
    transition: color 0.2s;
}

/* Submit button */
.form-btn {
    background: #40abf5;
    color: #222;
    padding: 12px 16px;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}

/* Form errors */
.form-error {
    color: red;
    padding: 2%;
}

.blocked-error h2 {
    color: red;
    padding: 2%;
}


/* Responsive for small screens */
@media (max-width: 600px) {
        .form-section.form-spad.form-page .form-container {
            padding: 18px 8px 12px;
            max-width: 100% !important; 
        }
    }

/* License: MIT
https://github.com/example/repo/blob/main/file.js */

/* Modern gaming form pass */

main > .flex-container > div.form-container {
    display: flex;
    justify-content: center;
    width: min(100%, 760px);
    height: auto;
    margin: 0 auto;
    padding: 20px;
    background: transparent;
    border: 0;
    box-shadow: none;
}

.form-section.form-spad.form-page .form-container {
    width: min(100%, 420px) !important;
    max-width: 420px !important;
    background: rgba(15, 20, 28, 0.96);
    border: 1px solid rgba(116, 139, 167, 0.26);
    border-radius: 8px;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.34);
    color: #e7edf5;
}

.form-row {
    width: 100%;
}

.form-row-element {
    width: 100%;
    text-align: left;
}

label {
    color: #f2bd57;
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
}

input[type="text"],
input[type="email"],
input[type="password"] {
    width: 100%;
    padding: 12px 14px;
    color: #e7edf5;
    background: rgba(7, 10, 14, 0.88);
    border: 1px solid rgba(116, 139, 167, 0.26);
    border-radius: 8px;
    font-size: 1rem;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus {
    border-color: #49d7ff;
    outline: none;
    box-shadow: 0 0 0 3px rgba(73, 215, 255, 0.15);
}

.form-btn {
    width: 100%;
    color: #051019;
    background: #49d7ff;
    border-radius: 8px;
    font-weight: 900;
}

.form-btn:hover {
    color: #061018;
    background: #f2bd57;
    transform: translateY(-1px);
}

.form-error {
    color: #ffd8dc;
    background: rgba(239, 90, 103, 0.15);
    border: 1px solid rgba(239, 90, 103, 0.42);
    border-radius: 8px;
}

.form-success {
    color: #d7ffe7;
    background: rgba(62, 224, 134, 0.14);
    border: 1px solid rgba(62, 224, 134, 0.4);
    border-radius: 8px;
    padding: 10px;
}

/* Contact needs more writing room than account forms. */
.contact-main {
    min-height: 72vh;
    padding: 28px 0 70px;
}

main.contact-main > .flex-container {
    justify-content: center;
}

main.contact-main > .flex-container > .contact-container {
    flex: 0 1 860px;
    width: min(100%, 860px);
    margin: 0 auto;
    overflow: visible;
    box-sizing: border-box;
}

.contact-page {
    width: 100%;
}

.contact-form-panel {
    width: 100%;
    padding: 26px 30px 30px;
    color: #e7edf5;
    background: rgba(15, 20, 28, 0.96);
    border: 1px solid rgba(116, 139, 167, 0.26);
    border-radius: 8px;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.34);
    box-sizing: border-box;
}

.contact-form-panel h2 {
    margin: 4px 0 7px;
}

@media (max-width: 600px) {
    .contact-main {
        padding-top: 18px;
    }

    .contact-form-panel {
        padding: 20px 16px 22px;
    }
}

/* Login page */

.login-page {
    display: grid;
    place-items: start center;
    padding-top: 20px;
}

.login-panel {
    width: min(100%, 560px);
}

.form-section.form-spad.form-page .login-panel-content {
    position: relative;
    width: 100% !important;
    max-width: none !important;
    align-items: stretch !important;
    gap: 0;
    padding: 0;
    overflow: hidden;
    color: var(--gw-text);
    background: var(--gw-surface);
    border-color: var(--gw-line-strong);
    box-shadow: var(--gw-shadow);
}

.login-panel-content::before {
    content: "";
    display: block;
    height: 4px;
    background: linear-gradient(90deg, var(--gw-accent), var(--gw-gold));
}

.login-heading {
    padding: 24px 26px 20px;
    text-align: left;
    border-bottom: 1px solid var(--gw-line);
}

.login-heading > span {
    display: block;
    margin-bottom: 5px;
    color: var(--gw-accent);
    font-size: 0.76rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.login-heading h1 {
    margin: 0;
    color: var(--gw-text);
    font-size: clamp(1.7rem, 4vw, 2.15rem);
    line-height: 1.1;
}

.login-heading p {
    margin: 9px 0 0;
    color: var(--gw-muted);
    font-size: 0.92rem;
}

.login-panel-content > .form-error {
    margin: 20px 26px 0;
}

.login-panel-content > .form-success {
    margin: 20px 26px 0;
}

.login-form {
    display: grid;
    gap: 16px;
    padding: 22px 26px 24px;
}

.login-form .form-row-element {
    gap: 6px;
    margin: 0;
}

.login-form label {
    margin: 0;
    color: var(--gw-gold);
    letter-spacing: 0.06em;
}

.login-form input[type="text"],
.login-form input[type="email"],
.login-form input[type="password"] {
    margin: 0;
    color: var(--gw-text);
    background: rgba(5, 9, 14, 0.7);
    border-color: var(--gw-line);
}

.login-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 44px;
    margin-top: 2px;
}

.login-submit img {
    width: 22px;
    height: 22px;
}

.login-panel-content .steam-auth-option {
    margin: 0 26px;
    padding: 21px 16px;
    background: rgba(21, 29, 41, 0.56);
    border: 1px solid var(--gw-line);
    border-radius: var(--gw-radius);
}

.login-register-prompt {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 22px;
    padding: 17px 24px;
    color: var(--gw-muted);
    background: rgba(5, 9, 14, 0.3);
    border-top: 1px solid var(--gw-line);
    font-size: 0.88rem;
}

.login-register-prompt img {
    width: 20px;
    height: 20px;
    filter: brightness(0) invert(1);
}

.login-register-prompt a {
    font-weight: 900;
}

html[data-theme="light"] .login-form input[type="text"],
html[data-theme="light"] .login-form input[type="email"],
html[data-theme="light"] .login-form input[type="password"] {
    background: #e1e7eb;
}

html[data-theme="light"] .login-panel-content .steam-auth-option {
    background: rgba(170, 189, 202, 0.54);
}

html[data-theme="light"] .login-register-prompt {
    background: rgba(170, 189, 202, 0.36);
}

html[data-theme="light"] .login-register-prompt img {
    filter: none;
}

.register-panel {
    width: min(100%, 680px);
}

.register-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.register-submit {
    grid-column: 1 / -1;
}

@media (max-width: 600px) {
    .login-page {
        padding-top: 8px;
    }

    .login-heading,
    .login-form {
        padding-right: 18px;
        padding-left: 18px;
    }

    .login-panel-content > .form-error,
    .login-panel-content > .form-success,
    .login-panel-content .steam-auth-option {
        margin-right: 18px;
        margin-left: 18px;
    }

    .register-form {
        grid-template-columns: 1fr;
    }

    .register-submit {
        grid-column: auto;
    }
}
