@charset "utf-8";

* {
    box-sizing: border-box;
}

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

body {
    position: relative;
    min-height: 100vh;
    overflow-x: hidden;
    color: #f7edcf;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", Arial, sans-serif;
    background:
        radial-gradient(circle at 18% 18%, rgba(215, 174, 68, 0.13), transparent 28%),
        radial-gradient(circle at 82% 76%, rgba(32, 121, 82, 0.18), transparent 30%),
        linear-gradient(145deg, #071711 0%, #04100c 46%, #071b14 100%);
}

body::before {
    position: fixed;
    inset: 0;
    content: "";
    pointer-events: none;
    background:
        repeating-linear-gradient(45deg, transparent 0, transparent 52px, rgba(216, 176, 70, 0.025) 53px, transparent 54px),
        repeating-linear-gradient(-45deg, transparent 0, transparent 52px, rgba(216, 176, 70, 0.02) 53px, transparent 54px);
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), transparent 86%);
    -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), transparent 86%);
}

button,
input {
    font: inherit;
}

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

.star {
    position: absolute;
    width: 2px;
    height: 2px;
    border-radius: 50%;
    background: #f7e7ad;
    box-shadow: 0 0 7px rgba(247, 215, 120, 0.55);
    animation: twinkle 4s infinite ease-in-out;
}

@keyframes twinkle {
    0%,
    100% {
        opacity: 0.15;
        transform: scale(0.85);
    }

    50% {
        opacity: 0.65;
        transform: scale(1.15);
    }
}

.page-shell {
    position: relative;
    z-index: 1;
    display: flex;
    width: 100%;
    min-height: 100vh;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.login-container {
    position: relative;
    z-index: 1;
    width: calc(100% - 32px);
    max-width: 420px;
    margin: 0 auto;
    padding: 42px 44px 34px;
    border: 1px solid rgba(226, 191, 99, 0.52);
    border-radius: 20px;
    background:
        linear-gradient(155deg, rgba(17, 59, 43, 0.93), rgba(3, 24, 17, 0.97)),
        #071d15;
    box-shadow:
        0 34px 80px rgba(0, 0, 0, 0.52),
        0 0 44px rgba(205, 160, 51, 0.08),
        inset 0 1px 0 rgba(255, 248, 218, 0.09);
    color: #f7edcf;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.login-container::before {
    position: absolute;
    inset: 7px;
    z-index: -1;
    content: "";
    border: 1px solid rgba(255, 238, 179, 0.055);
    border-radius: 14px;
    pointer-events: none;
}

.logo-container {
    position: relative;
    margin: 0 auto 30px;
    text-align: center;
}

.brand-eyebrow {
    margin-bottom: 16px;
    color: rgba(240, 212, 137, 0.72);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 4px;
    text-indent: 4px;
}

.logo-mark {
    position: relative;
    width: 58px;
    height: 58px;
    margin: 0 auto 14px;
    border: 1px solid #d8ae3f;
    box-shadow: 0 0 22px rgba(255, 215, 0, 0.17), inset 0 0 16px rgba(255, 215, 0, 0.08);
    transform: rotate(45deg);
}

.logo-mark::before,
.logo-mark::after {
    position: absolute;
    content: "";
    background: #d6a928;
    opacity: 0.65;
}

.logo-mark::before {
    top: 7px;
    left: 28px;
    width: 1px;
    height: 42px;
}

.logo-mark::after {
    top: 28px;
    left: 7px;
    width: 42px;
    height: 1px;
}

.logo-mark-letter {
    position: absolute;
    top: 0;
    left: 0;
    width: 56px;
    height: 56px;
    color: #f6d675;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 33px;
    font-weight: bold;
    line-height: 56px;
    text-shadow: 0 1px 0 #6f4700, 0 0 8px rgba(255, 215, 0, 0.35);
    transform: rotate(-45deg);
}

.logo-wordmark {
    display: flex;
    align-items: center;
    color: #f2cb61;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 34px;
    font-weight: bold;
    letter-spacing: 3px;
    line-height: 1;
    text-indent: 3px;
    text-shadow: 0 1px 0 #6f4700, 0 0 8px rgba(255, 215, 0, 0.25);
}

.logo-wordmark::before,
.logo-wordmark::after {
    flex: 1;
    height: 1px;
    content: "";
    background: linear-gradient(to right, transparent, #d6a928);
}

.logo-wordmark::after {
    background: linear-gradient(to left, transparent, #d6a928);
}

.logo-wordmark-text {
    margin: 0 14px;
    background: linear-gradient(to bottom, #fff1ae, #d6a928 58%, #9a690d);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.brand-subtitle {
    margin-top: 14px;
    color: #f2d681;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 3px;
    text-indent: 3px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.48);
}

.brand-rule {
    width: 64px;
    height: 1px;
    margin: 14px auto 0;
    background: linear-gradient(to right, transparent, rgba(229, 194, 100, 0.68), transparent);
}

.form-group {
    margin-bottom: 17px;
}

.form-group label {
    display: block;
    margin: 0 0 8px 2px;
    color: rgba(249, 235, 195, 0.82);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
}

.form-group input,
.captcha-group input {
    width: 100%;
    height: 50px;
    padding: 0 15px;
    border: 1px solid rgba(223, 188, 91, 0.46);
    border-radius: 10px;
    outline: none;
    background: rgba(1, 17, 12, 0.72);
    box-shadow: inset 0 1px 8px rgba(0, 0, 0, 0.24);
    color: #fff6d8;
    font-size: 16px;
    transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.form-group input:focus,
.captcha-group input:focus {
    border-color: #e5bf58;
    background: rgba(2, 24, 17, 0.9);
    box-shadow: 0 0 0 3px rgba(222, 180, 67, 0.12), inset 0 1px 8px rgba(0, 0, 0, 0.18);
}

.captcha-group {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 2px 0 17px;
}

.captcha-group input {
    flex: 1 1 auto;
    min-width: 0;
    height: 48px;
}

.captcha-image {
    flex: 0 0 116px;
    width: 116px;
    height: 48px;
    overflow: hidden;
    border: 1px solid rgba(235, 208, 137, 0.3);
    border-radius: 9px;
    background: #f6f1df;
    cursor: pointer;
    object-fit: fill;
}

.checkbox-container {
    display: flex;
    min-height: 28px;
    align-items: center;
    margin: 0 0 14px 2px;
    color: rgba(249, 235, 195, 0.82);
    font-size: 14px;
}

.checkbox-container input[type="checkbox"] {
    width: 17px;
    height: 17px;
    margin: 0 9px 0 0;
    accent-color: #d8a92f;
}

.login-button {
    width: 100%;
    height: 50px;
    margin-top: 8px;
    padding: 0 20px;
    border: 1px solid #ffdc72;
    border-radius: 10px;
    background: linear-gradient(180deg, #ffe99c 0%, #e3b83d 48%, #b97c12 100%);
    box-shadow: 0 10px 24px rgba(184, 123, 15, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.62);
    color: #1b1607;
    cursor: pointer;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 4px;
    text-indent: 4px;
    transition: transform 160ms ease, filter 160ms ease, box-shadow 160ms ease;
}

.login-button:hover {
    filter: brightness(1.08);
    box-shadow: 0 13px 28px rgba(184, 123, 15, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.7);
    transform: translateY(-1px);
}

.login-button:active {
    transform: translateY(1px);
}

.login-footer {
    margin-top: 20px;
    color: rgba(214, 204, 169, 0.42);
    font-size: 10px;
    letter-spacing: 1.6px;
    text-align: center;
}

@media (max-width: 560px) {
    .page-shell {
        align-items: flex-start;
        padding: 26px 16px;
    }

    .login-container {
        max-width: 380px;
        padding: 34px 24px 28px;
        border-radius: 17px;
    }

    .logo-container {
        margin-bottom: 25px;
    }

    .brand-eyebrow {
        margin-bottom: 14px;
        letter-spacing: 3px;
        text-indent: 3px;
    }

    .logo-mark {
        width: 52px;
        height: 52px;
    }

    .logo-mark::before {
        left: 25px;
        height: 38px;
    }

    .logo-mark::after {
        top: 25px;
        width: 38px;
    }

    .logo-mark-letter {
        width: 50px;
        height: 50px;
        font-size: 30px;
        line-height: 50px;
    }

    .logo-wordmark {
        font-size: 30px;
    }

    .captcha-image {
        flex-basis: 108px;
        width: 108px;
    }
}

@media (max-height: 680px) and (min-width: 561px) {
    .page-shell {
        padding: 22px 20px;
    }

    .login-container {
        padding-top: 28px;
        padding-bottom: 25px;
    }

    .logo-container {
        margin-bottom: 20px;
    }

    .brand-eyebrow,
    .brand-rule {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .star {
        animation: none;
    }

    .login-button {
        transition: none;
    }
}
