/* Responsive login surface. Form behaviour is unchanged. */
@media (max-width: 1000px) {
    #bodyContainer { width: 100%; }
    #content { background-size: cover; background-position: center top; }
    #content > .container { max-width: 640px; }
    #login input,
    #reg input,
    #login #loginsubmit,
    #reg .bgc_signup_form_register { font-size: 16px !important; }
}

@media (max-width: 560px) {
    #content > .container { padding-left: 12px; padding-right: 12px; }
    #login,
    #reg { width: 100%; }
    #reg #gccc { min-height: 72px; }
    #reg .g-recaptcha,
    #reg .cf-turnstile { transform: scale(.92); transform-origin: center; }
    #footer { width: 100%; }
}

/* Final overrides: the legacy inline theme must not split the access surface. */
#content {
    background-color: #030a14;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    box-sizing: border-box;
    padding: 64px 0;
}

#content > .container {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-rows: auto auto auto !important;
    grid-template-areas: "hero" "tabs" "login" "register" !important;
    align-items: stretch !important;
    width: 400px !important;
    max-width: calc(100% - 24px) !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 auto !important;
    padding: 22px !important;
    border: 1px solid rgba(126, 181, 208, .28);
    border-radius: 18px;
    background: linear-gradient(155deg, rgba(19, 42, 60, .96), rgba(5, 17, 30, .97) 65%);
    box-shadow: 0 32px 80px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255, 255, 255, .08);
}

#content > .container::before {
    content: "";
    position: absolute;
    top: -1px;
    left: 22%;
    right: 22%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #78ddff, transparent);
    box-shadow: 0 0 20px rgba(80, 216, 255, .35);
}

#access-tabs {
    border: 0;
    border-bottom: 1px solid rgba(126, 181, 208, .2);
    border-radius: 0;
    padding: 0 0 7px;
    background: transparent;
}
#access-tabs .access-tab {
    border-radius: 7px;
    letter-spacing: .1em;
    transition: background .2s ease, color .2s ease;
}
#access-tabs .access-tab.is-active {
    background: rgba(75, 176, 218, .13);
    color: #a5eaff;
    box-shadow: inset 0 0 0 1px rgba(90, 190, 230, .22);
}
#access-tabs .access-tab:hover { color: #fff; background: rgba(75, 176, 218, .1); }
#access-tabs .access-tab:focus-visible { outline: 2px solid #78ddff; outline-offset: 2px; }

#claim {
    position: relative !important;
    inset: auto !important;
    grid-area: hero !important;
    grid-column: 1 !important;
    width: auto !important;
    margin: 0 0 8px !important;
    padding: 0 0 4px !important;
    text-align: center !important;
}

#claim::before { font-size: 34px !important; color: #d9f4ff; letter-spacing: .18em; text-shadow: 0 2px 18px rgba(80, 216, 255, .18); }
#claim span { display: block !important; width: auto !important; margin: 8px auto 0 !important; font-size: 13px !important; color: #b6c9d5; font-weight: 400; line-height: 1.4 !important; }
#claim::after { color: #668b9f; font-size: 9px; letter-spacing: .3em; }
#access-tabs { grid-area: tabs !important; box-sizing: border-box; width: 100% !important; margin: 4px 0 14px !important; }
#access-tabs .access-tab { height: 34px; }

#reg,
#login {
    position: relative !important;
    inset: auto !important;
    float: none !important;
    width: 100% !important;
    min-height: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
}

#reg { grid-area: register !important; }
#login { grid-area: login !important; }
#reg[hidden],
#login[hidden] { display: none !important; }
#logo { display: none !important; }

#login #login-form {
    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;
    width: 100% !important;
}

#login .bgcdw_login_form_login,
#login .bgcdw_login_form_buttons,
#login .bgcdw_login_form_login > div,
#login .bgcdw_login_form_buttons button {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

#login .bgcdw_login_form_login > div,
#reg .bgc_signup_form_signup > div { margin-bottom: 8px !important; }
#login input,
#reg .bgc_signup_form_signup input {
    height: 38px;
    border-radius: 7px;
    border: 1px solid rgba(136, 176, 200, .24);
    background: #081928;
    color: #e3f2fa;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, .15);
}
#login input::placeholder,
#reg input::placeholder { color: #7f9bad; opacity: 1; }
#login input:focus,
#reg .bgc_signup_form_signup input:focus {
    border-color: #63c8ed;
    background: #0b2032;
    box-shadow: 0 0 0 3px rgba(80, 216, 255, .1);
}
#login input:-webkit-autofill,
#reg input:-webkit-autofill {
    -webkit-text-fill-color: #e3f2fa;
    -webkit-box-shadow: 0 0 0 1000px #081928 inset;
    caret-color: #e3f2fa;
}
#login .bgcdw_login_form_buttons button,
#reg .bgc_signup_form_register { height: 38px !important; line-height: 38px; padding: 0 12px !important; }
#login #loginsubmit,
#reg button.bgc_signup_form_register {
    background: linear-gradient(110deg, #17668e, #2081a5);
    border: 1px solid rgba(109, 220, 255, .32);
    border-radius: 7px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .22), inset 0 1px 0 rgba(255, 255, 255, .13);
    font-size: 14px !important;
    transition: filter .2s ease, box-shadow .2s ease;
}
#login #loginsubmit:hover,
#reg button.bgc_signup_form_register:hover {
    filter: brightness(1.15);
    box-shadow: 0 6px 22px rgba(22, 120, 166, .25);
    transform: none;
}
#reg .bgc_signup_form_legal { margin: 0 0 5px !important; }
#reg .bgc_signup_form_legal > div:first-child { margin-top: 0 !important; }
#reg #gccc {
    width: 100% !important;
    box-sizing: border-box;
    min-height: 92px !important;
    height: 92px !important;
    margin: 0 0 2px !important;
    padding: 0 !important;
    overflow: visible;
    position: relative;
    z-index: 2;
    display: flex !important;
    align-items: flex-start !important;
    justify-content: center !important;
}
#reg .g-recaptcha,
#reg .cf-turnstile {
    flex: 0 0 auto;
    margin: 0 auto !important;
    transform: scale(1.16);
    transform-origin: top center;
}
#reg .bgc_signup_form_buttons,
#reg .bgc_signup_form_register {
    width: 100% !important;
    box-sizing: border-box;
}
#login #autoLogin { display: none !important; }
#reg::before,
#login::before { display: block !important; margin: 0 0 10px !important; text-align: left !important; }

#access-status {
    position: fixed;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
    box-sizing: border-box;
}

#access-status .status-pill.status-online,
#access-status .status-pill.status-online strong { color: #43e28c; }
#access-status .status-pill.status-online .status-dot {
    background: #43e28c;
    box-shadow: 0 0 10px #43e28c;
}
#access-status .status-pill.status-offline,
#access-status .status-pill.status-offline strong { color: #ff7180; }
#access-status .status-pill.status-offline .status-dot {
    background: #ff5d6c;
    box-shadow: 0 0 10px #ff5d6c;
}

@media (max-width: 560px) {
    #content > .container { padding: 20px 16px !important; }
    #access-status { gap: 8px; padding: 8px 10px; font-size: 10px; }
}
