:root {
    color-scheme: light;
    font-family: Inter, system-ui, "PingFang SC", "Microsoft YaHei", sans-serif;
    color: #202726;
    background: #e9eeea;
    line-height: 1.5;
}

* { box-sizing: border-box; }

body {
    display: grid;
    min-height: 100vh;
    min-height: 100svh;
    place-items: center;
    margin: 0;
    padding: clamp(18px, 4vw, 64px);
    background: radial-gradient(ellipse at 20% 5%, #f8f9f4, transparent 55%);
}

.login-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.07fr) minmax(0, 1fr);
    width: min(100%, 1130px);
    min-height: min(680px, 84svh);
    padding: 10px;
    overflow: hidden;
    border: 1px solid #fff;
    border-radius: 30px;
    background: #fdfdf9;
    box-shadow: 0 26px 90px #29392e22, 0 3px 12px #29392e0f;
}

.landscape {
    min-height: 100%;
    border-radius: 21px;
    background: #576c61 url("/assets/admin-login-photo.webp") center 40% / cover no-repeat;
}

.login-pane {
    display: grid;
    grid-template-rows: auto 1fr;
    padding: clamp(24px, 3.8vw, 54px);
}

.login-top, .brand {
    display: flex;
    align-items: center;
}

.login-top { justify-content: space-between; gap: 12px; }
.brand { gap: 10px; font-size: .94rem; font-weight: 700; white-space: nowrap; }
.brand img { border-radius: 10px; }

.download-link {
    color: #4d5c55;
    font-size: .82rem;
    text-decoration: none;
    white-space: nowrap;
}

.download-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.download-link span { margin-inline-start: 2px; }

.login-content { align-self: center; width: min(100%, 370px); margin: 35px auto 40px; }
h1 { margin: 0; font-size: clamp(1.9rem, 3.35vw, 2.65rem); font-weight: 760; letter-spacing: -.055em; line-height: 1.17; }
.intro { margin: 13px 0 34px; color: #55635c; font-size: .93rem; }
form { display: grid; gap: 9px; }
label { font-size: .875rem; font-weight: 650; }
label[for="password"], label[for="captcha"] { margin-top: 8px; }

input:not([type="hidden"], [type="checkbox"]) {
    width: 100%;
    min-height: 51px;
    padding: 12px 14px;
    border: 1px solid #d8dfd9;
    border-radius: 10px;
    background: #fff;
    color: #202726;
    font: inherit;
    font-size: 1rem;
}

input::placeholder { color: #68766e; font-size: .87rem; }
.password-field { position: relative; }
.password-field input:not([type="hidden"]) { padding-inline-end: 66px; }
.captcha-field { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.captcha-refresh { display: grid; place-items: center; padding: 0; overflow: hidden; border: 1px solid #d8dfd9; border-radius: 10px; background: #f3f8f0; }
.captcha-refresh img { display: block; max-width: min(150px, 36vw); height: auto; }
.remember-login { display: flex; align-items: center; gap: 8px; width: fit-content; margin-top: 8px; color: #46564d; cursor: pointer; }
.remember-login input { width: 16px; height: 16px; margin: 0; accent-color: #244c3c; }

button { font: inherit; cursor: pointer; }
.toggle {
    position: absolute;
    inset: 7px 8px 7px auto;
    min-width: 44px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #46564d;
    font-size: .8rem;
}

.toggle:hover { background: #edf2ed; }
.submit {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 53px;
    margin-top: 8px;
    padding: 12px 17px;
    border: 0;
    border-radius: 10px;
    background: #244c3c;
    color: #fff;
    font-size: .94rem;
    font-weight: 650;
    box-shadow: 0 4px 8px #264e3f2a;
}

.submit:hover { background: #1b3d30; }
.submit span { font-size: 1.15rem; line-height: 1; }
:is(input, button, a):focus-visible { outline: 2px solid #527f68; outline-offset: 3px; }

.notice {
    margin: 0 0 9px;
    padding: 9px 12px;
    border: 1px solid #efd0cb;
    border-radius: 9px;
    background: #fff3ef;
    color: #8c2d27;
    font-size: .86rem;
}
.notice--success { border-color: #bbd7c3; background: #eef8f1; color: #244c3c; }

@media (max-width: 760px) {
    .login-shell { grid-template-columns: minmax(0, 1fr); width: min(100%, 480px); min-height: auto; }
    .landscape { height: clamp(125px, 27vw, 185px); background-position: center 34%; }
    .login-pane { padding: clamp(15px, 4vw, 30px); }
    .login-content { margin: 31px auto 23px; }
    .intro { margin: 10px 0 24px; }
}
