:root {
    --sky: #12284d;
    --phone: #f5f5f8;
    --phone-border: #b84c4f;
    --red: #bd484b;
    --red-dark: #a93d40;
    --text: #24252a;
    --muted: #9294a0;
    --line: #cdced4;
}

* {
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    min-height: 100%;
    margin: 0;
}

body {
    font-family: Arial, Helvetica, sans-serif;
}

.login-page {
    min-height: 100vh;
    overflow: hidden;
    color: var(--text);
    background: var(--sky);
}

.sky,
.login-stage {
    position: fixed;
    inset: 0;
}

.sky {
    overflow: hidden;
    pointer-events: none;
}

.cloud {
    position: absolute;
    width: 72px;
    height: 15px;
    border-radius: 16px;
    background: #53647e;
    box-shadow: inset 0 -4px rgba(0, 0, 0, 0.18);
    opacity: 0.75;
}

.cloud::before,
.cloud::after {
    content: '';
    position: absolute;
    bottom: 4px;
    border-radius: 50%;
    background: inherit;
}

.cloud::before {
    left: 12px;
    width: 28px;
    height: 28px;
}

.cloud::after {
    right: 10px;
    width: 38px;
    height: 38px;
}

.cloud-one {
    top: 9%;
    left: 9%;
}

.cloud-two {
    top: -1%;
    left: 38%;
    transform: scale(0.8);
}

.cloud-three {
    top: 16%;
    right: 7%;
    transform: scale(0.65);
}

.city {
    position: absolute;
    right: 0;
    bottom: 22px;
    left: 0;
    height: 72px;
    background:
        linear-gradient(90deg,
            transparent 0 2%, #0c1e3a 2% 7%, transparent 7% 9%,
            #0c1e3a 9% 14%, transparent 14% 17%, #0c1e3a 17% 23%,
            transparent 23% 26%, #0c1e3a 26% 33%, transparent 33% 36%,
            #0c1e3a 36% 41%, transparent 41% 44%, #0c1e3a 44% 51%,
            transparent 51% 54%, #0c1e3a 54% 61%, transparent 61% 64%,
            #0c1e3a 64% 70%, transparent 70% 74%, #0c1e3a 74% 82%,
            transparent 82% 85%, #0c1e3a 85% 91%, transparent 91% 94%,
            #0c1e3a 94% 100%);
    opacity: 0.9;
}

.city::before {
    content: '';
    position: absolute;
    inset: 28px 0 0;
    background: #0c1e3a;
}

.fence {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 25px;
    border-top: 3px solid #69788c;
    background:
        linear-gradient(45deg, transparent 42%, #69788c 43% 48%, transparent 49%) 0 0 / 14px 14px,
        linear-gradient(-45deg, transparent 42%, #69788c 43% 48%, transparent 49%) 0 0 / 14px 14px,
        #0c1e3a;
}

.login-stage {
    z-index: 1;
    display: grid;
    place-items: center;
    padding: 28px;
}

.phone {
    position: relative;
    width: min(670px, calc(100vw - 56px));
    min-height: 350px;
    padding: 60px 36px 38px 64px;
    border: 4px solid var(--phone-border);
    border-radius: 44px;
    background: var(--phone);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

.phone::before {
    content: '';
    position: absolute;
    top: -7px;
    left: 145px;
    width: 72px;
    height: 5px;
    border-radius: 6px 6px 0 0;
    background: var(--phone-border);
}

.phone-status {
    position: absolute;
    top: 15px;
    right: 43px;
    left: 43px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    font-weight: 600;
}

.phone-signal {
    letter-spacing: 1px;
}

.phone-speaker {
    position: absolute;
    top: 130px;
    left: 10px;
    width: 23px;
    height: 84px;
    border-radius: 20px;
    background: #050505;
}

.phone-home {
    position: absolute;
    bottom: 10px;
    left: 50%;
    width: 133px;
    height: 5px;
    border-radius: 5px;
    background: #171717;
    transform: translateX(-50%);
}

.phone-button {
    position: absolute;
    left: 115px;
    width: 44px;
    height: 4px;
    background: var(--phone-border);
}

.top-button {
    top: -7px;
}

.bottom-button {
    bottom: -7px;
}

.phone-content {
    min-height: 230px;
    display: grid;
    grid-template-columns: 230px minmax(0, 1fr);
    align-items: center;
    gap: 44px;
}

.hotel-brand {
    display: flex;
    align-items: center;
    flex-direction: column;
    text-align: center;
}

.hotel-brand img {
    width: 190px;
    max-width: 100%;
    image-rendering: pixelated;
}

.hotel-brand strong {
    margin-top: 8px;
    font-size: 23px;
}

.online-count {
    margin-top: 8px;
    padding: 6px 12px;
    color: #fff;
    border: 2px solid #9f3f42;
    border-radius: 6px;
    background: var(--red);
    box-shadow: inset 0 -3px rgba(0, 0, 0, 0.16);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.login-form {
    display: grid;
    gap: 10px;
}

.login-form[hidden] {
    display: none !important;
}

.login-error {
    padding: 8px 10px;
    color: #8f292d;
    border: 1px solid #dcabad;
    border-radius: 3px;
    background: #f9dddd;
    font-size: 12px;
    font-weight: 700;
}

.field {
    position: relative;
    display: block;
}

.field-icon {
    position: absolute;
    top: 50%;
    left: 12px;
    color: #637ba5;
    font-size: 15px;
    transform: translateY(-50%);
}

.field input {
    width: 100%;
    height: 44px;
    padding: 0 14px 0 35px;
    color: #30323a;
    border: 1px solid var(--line);
    border-radius: 3px;
    outline: none;
    background: #fff;
    font-size: 14px;
}

.field input::placeholder {
    color: #a4a5ae;
}

.field input:focus {
    border-color: var(--phone-border);
    box-shadow: 0 0 0 2px rgba(184, 76, 79, 0.13);
}

.login-button,
.secondary-button {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    width: 100%;
    height: 40px;
    border: 0;
    border-radius: 3px;
    font-size: 13px;
    cursor: pointer;
}

.register-back,
.register-title {
    display: none;
}

.phone.is-registering {
    width: min(350px, calc(100vw - 24px));
    min-height: 660px;
    padding: 78px 34px 46px;
    border-radius: 44px;
}

.phone.is-registering::before,
.phone.is-registering .phone-button {
    display: none;
}

.phone.is-registering .phone-speaker {
    display: block;
    top: 9px;
    left: 50%;
    width: 84px;
    height: 25px;
    border-radius: 18px;
    transform: translateX(-50%);
}

.phone.is-registering .phone-content {
    min-height: 530px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 14px;
    padding-top: 55px;
}

.phone.is-registering .hotel-brand {
    width: 100%;
}

.phone.is-registering .hotel-brand img {
    width: 190px;
}

.phone.is-registering .online-count {
    display: none;
}

.phone.is-registering .register-title {
    display: block;
    margin-top: 8px;
    font-size: 23px;
}

.phone.is-registering .register-form {
    width: 100%;
}

.phone.is-registering .register-back {
    position: absolute;
    top: 44px;
    left: 22px;
    z-index: 2;
    display: block;
    padding: 0;
    color: var(--red);
    border: 0;
    background: transparent;
    font: inherit;
    font-size: 15px;
    cursor: pointer;
}

.register-note {
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.login-button {
    color: #fff;
    background: linear-gradient(var(--red), var(--red-dark));
    font-weight: 700;
}

.login-button:hover {
    filter: brightness(1.06);
}

.secondary-button {
    color: #202020;
    background: linear-gradient(#d9d9d9, #c6c6c6);
}

.secondary-button:disabled {
    cursor: default;
    opacity: 1;
}

.account-stage {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
}

.account-card {
    width: min(420px, 100%);
    padding: 42px;
    border: 4px solid var(--phone-border);
    border-radius: 34px;
    background: var(--phone);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
    text-align: center;
}

.account-card img {
    width: 160px;
    image-rendering: pixelated;
}

.account-label {
    margin-top: 20px;
    display: block;
    color: var(--red);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.account-card h1 {
    margin: 8px 0;
    font-size: 28px;
}

.account-card p {
    margin: 0;
    color: var(--muted);
}

.account-actions {
    margin-top: 28px;
    display: grid;
    gap: 10px;
}

.account-actions .login-button,
.account-actions .secondary-button {
    display: grid;
    place-items: center;
}

.disabled {
    opacity: 0.65;
}

.link-button {
    text-decoration: none;
}

.error-page {
    width: min(560px, calc(100% - 40px));
    margin: 100px auto;
    color: #fff;
    text-align: center;
}

.error-code {
    display: block;
    font-size: 7rem;
    font-weight: 900;
}

.error-page .button {
    display: inline-block;
    padding: 10px 18px;
    border-radius: 4px;
    color: #fff;
    background: var(--red);
    text-decoration: none;
}

@media (max-width: 700px) {
    .login-page {
        overflow: auto;
    }

    .login-stage {
        position: relative;
        min-height: 100vh;
        padding: 22px 14px 58px;
    }

    .phone {
        width: min(430px, 100%);
        padding: 58px 28px 42px;
        border-radius: 36px;
    }

    .phone-speaker {
        display: none;
    }

    .phone-content {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .hotel-brand img {
        width: 150px;
    }

    .hotel-brand strong {
        font-size: 20px;
    }
}

/* Oxy Deck handheld console */
.game-console {
    position: relative;
    width: min(980px, calc(100vw - 48px));
    min-height: 410px;
    padding: 48px 152px 30px;
    border: 3px solid #111722;
    border-radius: 76px 76px 68px 68px;
    background:
        linear-gradient(115deg, rgba(255, 255, 255, 0.09), transparent 26%),
        linear-gradient(180deg, #323b4b 0%, #202735 55%, #171d28 100%);
    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.42),
        inset 0 2px rgba(255, 255, 255, 0.12),
        inset 0 -7px rgba(0, 0, 0, 0.24);
    transition: width 180ms ease, min-height 180ms ease;
}

.game-console::before,
.game-console::after {
    content: '';
    position: absolute;
    z-index: -1;
    bottom: -12px;
    width: 132px;
    height: 92px;
    border-radius: 30px 30px 54px 54px;
    background: #101620;
    box-shadow: inset 0 -8px rgba(0, 0, 0, 0.22);
}

.game-console::before {
    left: 18px;
    transform: rotate(4deg);
}

.game-console::after {
    right: 18px;
    transform: rotate(-4deg);
}

.console-rail {
    position: absolute;
    top: 16px;
    right: 165px;
    left: 165px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #78869c;
    font-family: Consolas, monospace;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 2px;
}

.console-rail time {
    position: absolute;
    right: 0;
    color: #9aa8bb;
    letter-spacing: 0;
}

.power-light {
    position: absolute;
    left: 0;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #63edab;
    box-shadow: 0 0 10px rgba(99, 237, 171, 0.85);
}

.phone-button,
.phone-speaker,
.phone-home,
.phone-status {
    display: none;
}

.phone-content {
    position: relative;
    z-index: 1;
    min-height: 330px;
    padding: 30px 36px;
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    align-items: center;
    gap: 38px;
    overflow: hidden;
    border: 10px solid #0b1018;
    border-radius: 19px;
    background:
        radial-gradient(circle at 20% 20%, rgba(189, 72, 75, 0.09), transparent 31%),
        linear-gradient(135deg, #fbfcff, #eef1f7);
    box-shadow:
        0 0 0 2px #465166,
        inset 0 0 28px rgba(35, 48, 70, 0.1),
        0 0 24px rgba(82, 112, 160, 0.12);
}

.phone-content::before {
    content: '';
    position: absolute;
    top: -80px;
    left: -100px;
    width: 310px;
    height: 190px;
    transform: rotate(-18deg);
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.56), transparent);
    pointer-events: none;
}

.hotel-brand,
.login-form {
    position: relative;
    z-index: 1;
}

.hotel-brand img {
    width: 126px;
    height: 34px;
    max-width: 100%;
    object-fit: contain;
    image-rendering: auto;
    filter: none;
}

.online-count {
    gap: 7px;
    display: inline-flex;
    align-items: center;
    padding: 7px 12px;
    border: 1px solid #a73f42;
    border-radius: 999px;
    background: linear-gradient(180deg, #c95054, #a93d40);
    box-shadow: 0 5px 12px rgba(169, 61, 64, 0.22), inset 0 1px rgba(255, 255, 255, 0.18);
    letter-spacing: 0.3px;
}

.online-count i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9af5bb;
    box-shadow: 0 0 7px rgba(154, 245, 187, 0.9);
}

.console-controls {
    position: absolute;
    top: 50%;
    z-index: 2;
    width: 116px;
    height: 250px;
    transform: translateY(-45%);
}

.console-controls-left {
    left: 17px;
}

.console-controls-right {
    right: 17px;
}

.mini-stick {
    position: absolute;
    top: 8px;
    left: 31px;
    width: 53px;
    height: 53px;
    border: 8px solid #111722;
    border-radius: 50%;
    background: radial-gradient(circle at 38% 32%, #4a5668, #171d27 58%);
    box-shadow: 0 5px 7px rgba(0, 0, 0, 0.35), inset 0 1px rgba(255, 255, 255, 0.12);
}

.d-pad {
    position: absolute;
    top: 101px;
    left: 22px;
    width: 72px;
    height: 72px;
    border-radius: 7px;
    background:
        linear-gradient(#171d27, #171d27) center / 27px 100% no-repeat,
        linear-gradient(90deg, #171d27, #171d27) center / 100% 27px no-repeat;
    filter: drop-shadow(0 4px 3px rgba(0, 0, 0, 0.38));
}

.d-pad::before {
    content: '';
    position: absolute;
    inset: 27px;
    border-radius: 50%;
    background: #2e3848;
}

.action-buttons {
    position: absolute;
    top: 24px;
    left: 10px;
    width: 96px;
    height: 96px;
}

.action-buttons i {
    position: absolute;
    width: 35px;
    height: 35px;
    display: grid;
    place-items: center;
    color: rgba(255, 255, 255, 0.82);
    border: 3px solid #111722;
    border-radius: 50%;
    background: linear-gradient(145deg, #505d72, #252d3b);
    box-shadow: 0 4px 5px rgba(0, 0, 0, 0.36), inset 0 1px rgba(255, 255, 255, 0.14);
    font: normal 700 10px Consolas, monospace;
}

.button-y { top: 0; left: 31px; }
.button-x { top: 31px; left: 0; }
.button-b { top: 31px; right: 0; }
.button-a { bottom: 0; left: 31px; }

.menu-buttons {
    position: absolute;
    top: 147px;
    left: 30px;
    display: flex;
    gap: 13px;
}

.menu-buttons i {
    width: 20px;
    height: 7px;
    border-radius: 7px;
    background: #101620;
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.09);
}

.control-label {
    position: absolute;
    right: 0;
    bottom: 16px;
    left: 0;
    color: #69768a;
    font: 700 8px Consolas, monospace;
    letter-spacing: 2px;
    text-align: center;
}

.game-console .register-back {
    position: absolute;
    top: 61px;
    left: 169px;
    z-index: 4;
    padding: 4px 8px;
    color: var(--red);
    border: 0;
    background: transparent;
    font: 700 13px Arial, sans-serif;
    cursor: pointer;
}

.game-console.is-registering {
    width: min(1040px, calc(100vw - 34px));
    min-height: 515px;
}

.game-console.is-registering .phone-content {
    min-height: 435px;
    grid-template-columns: 230px minmax(0, 1fr);
    padding: 34px 42px;
}

.game-console.is-registering .hotel-brand,
.game-console.is-registering .hotel-brand img,
.game-console.is-registering .register-form {
    width: 100%;
}

.game-console.is-registering .hotel-brand img {
    width: 126px;
    height: 34px;
}

.game-console.is-registering .online-count {
    display: none;
}

.game-console.is-registering .register-back {
    display: block;
}

.game-console.is-registering .register-title {
    display: block;
    margin-top: 18px;
    color: #293247;
    font-size: 22px;
}

.game-console.is-registering .login-form {
    gap: 8px;
}

.game-console.is-registering .field input {
    height: 42px;
}

.game-console.is-registering .register-note {
    margin-top: 4px;
}

@media (max-width: 800px) {
    .login-stage {
        position: relative;
        min-height: 100vh;
        padding: 20px 12px 54px;
    }

    .game-console,
    .game-console.is-registering {
        width: min(460px, 100%);
        min-height: 0;
        padding: 44px 14px 14px;
        border-radius: 32px;
    }

    .game-console::before,
    .game-console::after,
    .console-controls {
        display: none;
    }

    .console-rail {
        top: 17px;
        right: 23px;
        left: 23px;
    }

    .phone-content,
    .game-console.is-registering .phone-content {
        min-height: 0;
        padding: 38px 24px 30px;
        grid-template-columns: 1fr;
        gap: 24px;
        border-width: 7px;
        border-radius: 16px;
    }

    .hotel-brand img,
    .game-console.is-registering .hotel-brand img {
        width: 126px;
        height: 34px;
    }

    .game-console .register-back {
        top: 58px;
        left: 29px;
    }

    .game-console.is-registering .phone-content {
        padding-top: 54px;
    }

    .game-console.is-registering .register-title {
        margin-top: 12px;
    }
}

/* Tactile auth controls */
.game-console .login-button,
.game-console .secondary-button {
    position: relative;
    height: 42px;
    border-radius: 5px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.2px;
    transition: transform 90ms ease, box-shadow 90ms ease, background-color 120ms ease;
}

.game-console .login-button {
    color: #fff;
    border: 2px solid #8d3337;
    background: #bd484b;
    box-shadow: 0 4px 0 #8d3337, inset 0 1px rgba(255, 255, 255, 0.2);
    text-shadow: 0 1px rgba(0, 0, 0, 0.22);
}

.game-console .login-button:hover {
    background: #c95357;
    filter: none;
}

.game-console .secondary-button {
    color: #354156;
    border: 2px solid #69768a;
    background: #f7f8fb;
    box-shadow: 0 4px 0 #69768a;
}

.game-console .secondary-button:hover {
    color: #a63c40;
    border-color: #a63c40;
    background: #fff;
    box-shadow: 0 4px 0 #a63c40;
}

.game-console .login-button:active,
.game-console .secondary-button:active {
    transform: translateY(3px);
    box-shadow: 0 1px 0 currentColor;
}

/* Night Academy auth theme */
.login-page {
    --ink: #243730;
    --ink-soft: #69726a;
    --paper: #f2e8cf;
    --paper-deep: #ddd0af;
    --forest: #174f43;
    --forest-dark: #10382f;
    --burgundy: #713b38;
    --gold: #b58a45;
    min-height: 100vh;
    overflow: auto;
    color: var(--ink);
    background: #100d0c url('../images/academy-desk.png') center / cover fixed no-repeat;
    font-family: Georgia, 'Times New Roman', serif;
}

.login-page::after {
    content: '';
    position: fixed;
    z-index: 0;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 50% 45%, transparent 22%, rgba(4, 10, 12, 0.16) 62%, rgba(2, 7, 10, 0.62) 100%),
        linear-gradient(180deg, rgba(2, 12, 16, 0.18), transparent 25%, rgba(12, 6, 4, 0.15));
}

.login-page .sky {
    position: fixed;
    z-index: 0;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.login-page .sky::before,
.login-page .sky::after {
    content: '';
    position: absolute;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: rgba(255, 218, 143, 0.72);
    box-shadow: 19vw 8vh rgba(255, 218, 143, 0.34), 71vw 13vh rgba(255, 218, 143, 0.28), 87vw 68vh rgba(255, 218, 143, 0.24), 8vw 76vh rgba(255, 218, 143, 0.28);
    animation: academy-dust 8s ease-in-out infinite alternate;
}

.login-page .sky::before {
    top: 17%;
    left: 16%;
}

.login-page .sky::after {
    right: 19%;
    bottom: 20%;
    opacity: 0.65;
    animation-delay: -4s;
}

.login-page .login-stage {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    padding: 68px 34px 54px;
    display: grid;
    place-items: center;
}

.login-page .game-console,
.login-page .game-console.is-registering {
    position: relative;
    width: min(920px, calc(100vw - 68px));
    min-height: 500px;
    padding: 23px;
    border: 1px solid #311f1a;
    border-radius: 17px 24px 24px 17px;
    background:
        linear-gradient(90deg, rgba(255,255,255,0.06), transparent 8% 92%, rgba(0,0,0,0.2)),
        repeating-linear-gradient(0deg, transparent 0 5px, rgba(0,0,0,0.025) 5px 6px),
        #59342b;
    box-shadow:
        0 42px 70px rgba(0, 0, 0, 0.52),
        0 7px 0 #291814,
        0 9px 0 #886449,
        inset 0 0 0 2px rgba(194, 149, 80, 0.28),
        inset 0 0 24px rgba(13, 7, 5, 0.45);
    transform: rotate(-0.35deg);
    transition: min-height 240ms ease, width 240ms ease;
    animation: ledger-arrive 650ms cubic-bezier(.2,.8,.2,1) both;
}

.login-page .game-console.is-registering {
    width: min(1000px, calc(100vw - 68px));
    min-height: 630px;
}

.login-page .game-console::before,
.login-page .game-console::after {
    display: none;
}

.login-page .console-rail {
    position: absolute;
    top: -34px;
    right: 18px;
    left: 18px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #d9bb83;
    font: 700 10px/1 Arial, sans-serif;
    letter-spacing: 2.4px;
    text-shadow: 0 2px 8px #000;
}

.login-page .console-rail time {
    position: absolute;
    right: 4px;
    color: #f0d49f;
    font-variant-numeric: tabular-nums;
}

.login-page .power-light {
    position: absolute;
    left: 4px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #8de7a7;
    box-shadow: 0 0 12px #58c97a;
}

.login-page .phone-content,
.login-page .game-console.is-registering .phone-content {
    position: relative;
    z-index: 1;
    width: 100%;
    min-height: 452px;
    padding: 46px 54px 40px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(330px, 0.92fr);
    align-items: center;
    gap: 76px;
    overflow: hidden;
    border: 0;
    border-radius: 6px 13px 13px 6px;
    background:
        linear-gradient(90deg, transparent 49.4%, rgba(92, 72, 45, 0.11) 49.8%, rgba(255,255,255,0.23) 50.15%, transparent 50.8%),
        repeating-linear-gradient(0deg, rgba(57, 78, 68, 0.045) 0 1px, transparent 1px 29px),
        radial-gradient(circle at 14% 10%, rgba(255,255,255,0.8), transparent 33%),
        linear-gradient(98deg, #e7dcc0 0%, #f6edd7 47%, #eee3c8 53%, #f8efd9 100%);
    box-shadow:
        inset 14px 0 22px rgba(78, 49, 27, 0.12),
        inset -7px 0 16px rgba(78, 49, 27, 0.1),
        0 2px 4px rgba(0,0,0,0.32);
}

.login-page .game-console.is-registering .phone-content {
    min-height: 582px;
    padding: 45px 58px 34px;
    grid-template-columns: minmax(0, 0.86fr) minmax(390px, 1.14fr);
    gap: 72px;
}

.login-page .phone-content::before {
    content: '';
    position: absolute;
    inset: 12px;
    width: auto;
    height: auto;
    transform: none;
    border: 1px solid rgba(103, 77, 43, 0.16);
    background: none;
    pointer-events: none;
}

.login-page .phone-content::after {
    content: '01  /  02';
    position: absolute;
    right: 30px;
    bottom: 22px;
    width: auto;
    height: auto;
    color: rgba(113, 59, 56, 0.28);
    border: 0;
    box-shadow: none;
    font: 800 8px Arial, sans-serif;
    letter-spacing: 1.8px;
    pointer-events: none;
}

.login-page .book-spine {
    position: absolute;
    z-index: 3;
    top: 31px;
    bottom: 31px;
    left: 50%;
    width: 2px;
    background: linear-gradient(180deg, transparent, rgba(70, 45, 28, 0.25) 10% 90%, transparent);
    box-shadow: -8px 0 15px rgba(59, 37, 21, 0.13), 8px 0 15px rgba(255,255,255,0.15);
    pointer-events: none;
}

.login-page .paper-clip {
    position: absolute;
    z-index: 4;
    top: 7px;
    right: 104px;
    width: 20px;
    height: 52px;
    border: 3px solid #a17c48;
    border-radius: 12px;
    transform: rotate(7deg);
    box-shadow: inset 0 0 0 2px #f0d198, 2px 3px 3px rgba(0,0,0,0.22);
}

.login-page .bookmark {
    position: absolute;
    z-index: 0;
    right: 72px;
    bottom: -35px;
    width: 54px;
    height: 66px;
    padding-top: 43px;
    color: rgba(255,255,255,0.7);
    background: #6d3537;
    box-shadow: 0 5px 8px rgba(0,0,0,0.28);
    font: 700 8px Arial, sans-serif;
    letter-spacing: 2px;
    text-align: center;
}

.login-page .hotel-brand,
.login-page .login-form {
    position: relative;
    z-index: 2;
}

.login-page .hotel-brand {
    min-height: 280px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    flex-direction: column;
    gap: 28px;
    text-align: left;
}

.login-page .hotel-brand::before {
    content: '✦';
    position: absolute;
    top: 4px;
    right: 8px;
    color: rgba(181, 138, 69, 0.48);
    font-size: 25px;
}

.login-page .brand-kicker,
.login-page .form-heading > span,
.login-page .field-label {
    color: var(--burgundy);
    font-family: Arial, Helvetica, sans-serif;
    font-weight: 800;
    letter-spacing: 1.7px;
    text-transform: uppercase;
}

.login-page .brand-kicker {
    margin-bottom: 16px;
    font-size: 9px;
}

.login-page .hotel-brand img,
.login-page .game-console.is-registering .hotel-brand img {
    width: 155px;
    height: 48px;
    max-width: 100%;
    object-fit: contain;
    object-position: left center;
    image-rendering: auto;
    filter: sepia(0.1) drop-shadow(0 2px 0 rgba(255,255,255,0.3));
}

.login-page .academy-mark {
    display: inline-flex;
    align-items: center;
    color: var(--ink);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 36px;
    font-weight: 950;
    line-height: 1;
    letter-spacing: -2px;
}

.login-page .academy-mark span {
    padding: 7px 8px 6px;
    color: #fff4d9;
    border-radius: 2px 0 0 2px;
    background: var(--forest);
    box-shadow: 3px 3px 0 rgba(16,56,47,0.2);
    letter-spacing: -1px;
}

.login-page .academy-mark b {
    padding: 5px 6px;
    color: var(--burgundy);
    font-size: 24px;
    letter-spacing: -1px;
    transform: rotate(-5deg);
}

.login-page .hotel-brand h1 {
    margin: 30px 0 13px;
    color: var(--ink);
    font-size: clamp(38px, 4.2vw, 57px);
    font-weight: 400;
    line-height: 0.91;
    letter-spacing: -2px;
}

.login-page .hotel-brand h1 em {
    color: var(--burgundy);
    font-weight: 700;
}

.login-page .brand-copy {
    margin: 0 0 22px;
    color: var(--ink-soft);
    font-size: 13px;
    line-height: 1.65;
}

.login-page .online-count {
    margin: 0;
    padding: 10px 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--forest);
    border: 1px solid rgba(23, 79, 67, 0.36);
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.24);
    box-shadow: none;
    font: 800 10px Arial, sans-serif;
    letter-spacing: 0.7px;
}

.login-page .online-count i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #3d9a67;
    box-shadow: 0 0 7px rgba(61, 154, 103, 0.54);
}

.login-page .brand-stamp {
    position: absolute;
    right: 5px;
    bottom: 5px;
    width: 58px;
    height: 58px;
    padding-top: 13px;
    color: rgba(113, 59, 56, 0.52);
    border: 2px dashed rgba(113, 59, 56, 0.42);
    border-radius: 50%;
    transform: rotate(-9deg);
    font: 800 9px/1.35 Arial, sans-serif;
    letter-spacing: 1px;
    text-align: center;
}

.login-page .login-form {
    display: grid;
    gap: 14px;
    align-content: center;
}

.login-page .login-form[hidden] {
    display: none !important;
}

.login-page .form-heading {
    margin-bottom: 8px;
}

.login-page .form-heading > span {
    display: block;
    margin-bottom: 7px;
    font-size: 9px;
}

.login-page .form-heading h2 {
    margin: 0;
    color: var(--ink);
    font-size: 31px;
    font-weight: 500;
    line-height: 1.05;
}

.login-page .form-heading p {
    margin: 8px 0 0;
    color: var(--ink-soft);
    font-size: 12px;
}

.login-page .field {
    position: relative;
    display: block;
    padding-top: 0;
}

.login-page .field-label {
    position: absolute;
    top: 0;
    left: 0;
    font-size: 8px;
}

.login-page .field-icon {
    position: absolute;
    z-index: 1;
    top: 50%;
    left: 13px;
    width: 22px;
    height: 22px;
    display: grid;
    place-items: center;
    color: var(--burgundy);
    border: 1px solid rgba(113, 59, 56, 0.35);
    border-radius: 50%;
    transform: translateY(-50%);
}

.login-page .field-icon svg {
    width: 13px;
    height: 13px;
    overflow: visible;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.login-page .phone-content {
    transform-origin: center;
    transition: opacity 150ms ease, transform 150ms ease;
}

.login-page .game-console.is-switching .phone-content {
    opacity: 0.3;
    transform: scaleX(0.985);
}

.login-page .field input,
.login-page .game-console.is-registering .field input {
    width: 100%;
    height: 46px;
    padding: 0 14px 0 45px;
    color: var(--ink);
    border: 1px solid rgba(76, 77, 60, 0.32);
    border-radius: 2px;
    outline: none;
    background: rgba(255, 253, 244, 0.56);
    box-shadow: inset 0 -2px rgba(82, 71, 45, 0.05);
    font: 14px Georgia, serif;
    transition: border-color 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

.login-page .field input::placeholder {
    color: #9a978b;
}

.login-page .field input:focus {
    border-color: var(--gold);
    background: rgba(255, 254, 247, 0.9);
    box-shadow: 0 0 0 3px rgba(181, 138, 69, 0.14), inset 0 -2px rgba(82, 71, 45, 0.05);
}

.login-page .login-button,
.login-page .secondary-button,
.login-page .game-console .login-button,
.login-page .game-console .secondary-button {
    width: 100%;
    height: 47px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 2px;
    cursor: pointer;
    font: 800 11px Arial, sans-serif;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: transform 120ms ease, box-shadow 120ms ease, background 120ms ease;
}

.login-page .login-button,
.login-page .game-console .login-button {
    margin-top: 4px;
    justify-content: space-between;
    padding: 0 18px;
    color: #fff8e7;
    border: 1px solid #0d352c;
    background: var(--forest);
    box-shadow: 0 4px 0 #0d352c, 0 8px 20px rgba(23,79,67,0.18), inset 0 1px rgba(255,255,255,0.13);
    text-shadow: none;
}

.login-page .login-button span {
    font: 21px Georgia, serif;
}

.login-page .login-button:hover,
.login-page .game-console .login-button:hover {
    background: #1c6252;
    filter: none;
    transform: translateY(-1px);
}

.login-page .secondary-button,
.login-page .game-console .secondary-button {
    color: var(--burgundy);
    border: 1px solid rgba(113, 59, 56, 0.34);
    background: transparent;
    box-shadow: none;
}

.login-page .secondary-button:hover,
.login-page .game-console .secondary-button:hover {
    color: #fff8e7;
    border-color: var(--burgundy);
    background: var(--burgundy);
    box-shadow: none;
}

.login-page .login-button:active,
.login-page .secondary-button:active,
.login-page .game-console .login-button:active,
.login-page .game-console .secondary-button:active {
    transform: translateY(2px);
    box-shadow: none;
}

.login-page .login-error {
    padding: 10px 12px;
    color: #71302e;
    border: 1px solid rgba(113, 48, 46, 0.35);
    border-left: 4px solid #8c3f3b;
    border-radius: 2px;
    background: rgba(156, 65, 60, 0.09);
    font: 700 11px/1.4 Arial, sans-serif;
}

.login-page .register-title {
    display: none;
}

.login-page .game-console.is-registering .online-count {
    display: inline-flex;
}

.login-page .game-console.is-registering .register-title {
    display: block;
    margin: 42px 0 0;
    color: var(--ink);
    font: 500 42px/0.95 Georgia, serif;
    letter-spacing: -1.5px;
}

.login-page .game-console.is-registering .register-form {
    width: 100%;
    grid-template-columns: 1fr 1fr;
    gap: 11px 12px;
}

.login-page .game-console.is-registering .register-form .form-heading,
.login-page .game-console.is-registering .register-form .login-error,
.login-page .game-console.is-registering .register-form .login-button,
.login-page .game-console.is-registering .register-form .register-note {
    grid-column: 1 / -1;
}

.login-page .game-console.is-registering .register-form .field:nth-of-type(1),
.login-page .game-console.is-registering .register-form .field:nth-of-type(5) {
    grid-column: 1 / -1;
}

.login-page .register-note {
    margin: 3px 0 0;
    color: var(--ink-soft);
    font: 700 9px/1.4 Arial, sans-serif;
    letter-spacing: 0.2px;
    text-align: center;
}

.login-page .game-console .register-back {
    position: absolute;
    z-index: 5;
    top: 47px;
    left: 55px;
    display: none;
    padding: 5px 0;
    color: var(--burgundy);
    border: 0;
    border-bottom: 1px solid rgba(113,59,56,0.3);
    background: transparent;
    font: 800 9px Arial, sans-serif;
    letter-spacing: 0.7px;
    text-transform: uppercase;
    cursor: pointer;
}

.login-page .game-console.is-registering .register-back {
    display: block;
}

@keyframes ledger-arrive {
    from { opacity: 0; transform: translateY(22px) rotate(-0.8deg) scale(0.975); }
    to { opacity: 1; transform: translateY(0) rotate(-0.35deg) scale(1); }
}

@keyframes academy-dust {
    from { transform: translate3d(0, 8px, 0); opacity: 0.4; }
    to { transform: translate3d(14px, -9px, 0); opacity: 0.9; }
}

@media (max-width: 800px) {
    .login-page {
        background-position: 45% center;
    }

    .login-page .login-stage {
        padding: 64px 13px 70px;
        place-items: start center;
    }

    .login-page .game-console,
    .login-page .game-console.is-registering {
        width: min(480px, 100%);
        min-height: 0;
        padding: 14px;
        border-radius: 11px 17px 17px 11px;
        transform: none;
    }

    .login-page .phone-content,
    .login-page .game-console.is-registering .phone-content {
        min-height: 0;
        padding: 38px 27px 35px;
        grid-template-columns: 1fr;
        gap: 26px;
        border-radius: 4px 10px 10px 4px;
        background:
            repeating-linear-gradient(0deg, rgba(57, 78, 68, 0.045) 0 1px, transparent 1px 29px),
            radial-gradient(circle at 14% 10%, rgba(255,255,255,0.8), transparent 42%),
            #f2e8cf;
    }

    .login-page .hotel-brand {
        min-height: 0;
        align-items: center;
        text-align: center;
    }

    .login-page .hotel-brand img,
    .login-page .game-console.is-registering .hotel-brand img {
        width: 135px;
        height: 42px;
        object-position: center;
    }

    .login-page .hotel-brand h1 {
        margin: 19px 0 10px;
        font-size: 39px;
    }

    .login-page .brand-copy {
        margin-bottom: 16px;
    }

    .login-page .brand-stamp,
    .login-page .book-spine,
    .login-page .paper-clip {
        display: none;
    }

    .login-page .console-rail {
        right: 5px;
        left: 5px;
        font-size: 8px;
        letter-spacing: 1.3px;
    }

    .login-page .game-console.is-registering .hotel-brand {
        display: none;
    }

    .login-page .game-console.is-registering .register-form {
        grid-template-columns: 1fr;
    }

    .login-page .game-console.is-registering .register-form > * {
        grid-column: 1 !important;
    }

    .login-page .game-console .register-back {
        top: 31px;
        left: 35px;
    }

    .login-page .game-console.is-registering .phone-content {
        padding-top: 70px;
    }

    .login-page .bookmark {
        right: 43px;
    }
}

@media (max-width: 420px) {
    .login-page .login-stage {
        padding-right: 8px;
        padding-left: 8px;
    }

    .login-page .phone-content,
    .login-page .game-console.is-registering .phone-content {
        padding-right: 20px;
        padding-left: 20px;
    }

    .login-page .form-heading h2 {
        font-size: 27px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .login-page .game-console,
    .login-page .sky::before,
    .login-page .sky::after {
        animation: none;
    }
}

/* A refused login for a ban: the reason, when it ends, and a box to appeal. */
.login-page .ban-notice {
    display: grid;
    gap: 3px;
    font-weight: 400;
}

.login-page .ban-notice strong { font-weight: 700; }

/* Staff-only mode (maintenance): the hotel is being set up. */
.login-page .maintenance-notice {
    display: grid;
    gap: 3px;
    font-weight: 400;
}

.login-page .maintenance-notice strong { font-weight: 700; }

.login-page .ban-appeal {
    display: grid;
    gap: 8px;
    margin-top: 12px;
}

.login-page .ban-appeal form {
    display: grid;
    gap: 8px;
}

.login-page .ban-appeal-label {
    color: var(--ink);
    font: 700 12px/1.4 Arial, sans-serif;
}

.login-page .ban-appeal textarea {
    width: 100%;
    padding: 10px 12px;
    color: var(--ink);
    border: 1px solid rgba(76, 77, 60, 0.32);
    border-radius: 2px;
    outline: none;
    background: rgba(255, 253, 244, 0.56);
    font: 13px/1.45 Georgia, serif;
    resize: vertical;
}

.login-page .ban-appeal textarea:focus {
    border-color: var(--gold);
    background: rgba(255, 254, 247, 0.9);
}

.login-page .ban-appeal-status {
    margin: 0;
    padding: 10px 12px;
    color: var(--ink);
    border: 1px solid rgba(76, 77, 60, 0.25);
    border-radius: 2px;
    background: rgba(255, 253, 244, 0.5);
    font: 12px/1.45 Arial, sans-serif;
}

.login-page .ban-appeal-status.is-good {
    border-left: 4px solid #3f7a4d;
}

/* ---- MythEmu.Web: the signed-in home page and the notice board under the name ---- */

.login-page .home-panel {
    gap: 12px;
}

.login-page .home-button {
    text-decoration: none;
}

.login-page .home-panel form {
    margin: 0;
}




