:root {
    color-scheme: light;
    --login-ink: #231f20;
    --login-muted: #625e54;
    --login-accent: #dcb826;
}

* { box-sizing: border-box; }
html { min-height: 100%; }
body {
    position: relative;
    margin: 0;
    min-height: 100vh;
    min-height: 100svh;
    background: #231f20;
    color: var(--login-ink);
    font-family: "Segoe UI", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    isolation: isolate;
}
.login-background, .background-tint, .background-diagonal {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
}
.login-background { overflow: hidden; }
.background-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0;
    filter: blur(6px);
    transform: scale(1.025);
    transition: opacity 1.6s ease-in-out, filter 1.6s ease-in-out;
}
.background-slide.is-active { opacity: 1; filter: blur(0); }
.background-tint {
    background: linear-gradient(90deg, rgba(16, 15, 14, .12), rgba(16, 15, 14, .18) 38%, rgba(16, 15, 14, .58) 68%, rgba(16, 15, 14, .5));
}
.background-diagonal {
    background: rgba(255, 255, 255, .045);
    clip-path: polygon(88% 0, 100% 0, 100% 100%, 0 100%, 0 76%);
}
.login-layout {
    width: min(1280px, 100%);
    min-height: 100vh;
    min-height: 100svh;
    margin: 0 auto;
    padding: 70px 64px;
    display: grid;
    grid-template-columns: 398px minmax(0, 1fr);
    align-items: center;
    gap: clamp(64px, 7vw, 112px);
}
.login-card {
    padding: 42px 42px 30px;
    border: 1px solid rgba(255, 255, 255, .38);
    border-radius: 25px;
    background: rgba(255, 253, 245, .88);
    box-shadow: 0 20px 64px rgba(0, 0, 0, .22), inset 0 1px 0 rgba(255, 255, 255, .4);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
}
.login-logo { display: block; width: 188px; height: auto; margin: 0 0 27px; }
.login-eyebrow { margin: 0 0 8px; color: #78600c; font-size: 10px; font-weight: 750; letter-spacing: 1.8px; }
.login-card h1 { margin: 0 0 9px; font-size: 31px; font-weight: 750; letter-spacing: -1.1px; }
.login-description { margin: 0 0 30px; color: var(--login-muted); font-size: 13px; }
.login-field { margin-bottom: 20px; }
.login-field label { display: block; margin-bottom: 8px; font-size: 12px; font-weight: 650; }
.login-field input {
    display: block;
    width: 100%;
    min-height: 46px;
    padding: 12px 14px;
    border: 1px solid rgba(35, 31, 32, .18);
    border-radius: 5px;
    outline: none;
    background: rgba(255, 255, 255, .95);
    color: var(--login-ink);
    font: inherit;
    font-size: 13px;
    transition: border-color .2s, box-shadow .2s;
}
.login-field input::placeholder { color: #79756b; }
.login-field input:focus { border-color: #9d7b0c; box-shadow: 0 0 0 3px rgba(220, 184, 38, .24); }
.password-field { position: relative; }
.password-field input { padding-right: 49px; }
.password-toggle {
    position: absolute;
    right: 2px;
    top: 2px;
    width: 43px;
    height: calc(100% - 4px);
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 4px;
    background: transparent;
    color: #716b5d;
}
.password-toggle:hover { color: var(--login-ink); }
.eye-slash { display: none; }
.password-toggle[aria-pressed="true"] .eye-slash { display: block; }
button:focus-visible { outline: 3px solid #9d7b0c; outline-offset: 4px; }
.login-submit {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 18px;
    width: 100%;
    min-height: 46px;
    margin-top: 28px;
    padding: 11px 18px;
    border: 1px solid #c4a01b;
    border-radius: 5px;
    background: var(--login-accent);
    color: var(--login-ink);
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 5px 15px rgba(156, 122, 0, .16);
    transition: background .2s, transform .2s;
}
.login-submit:hover { background: #e9ca4b; transform: translateY(-1px); }
.login-submit:disabled { opacity: .7; cursor: wait; transform: none; }
.login-submit > span[aria-hidden] { font-size: 19px; line-height: 1; }
#alertPlaceholder:empty { display: none; }
#alertPlaceholder .alert { margin: 0; padding: 12px; border-radius: 5px; font-size: 12px; }
.login-card-footer { margin-top: 32px; text-align: center; }
.footer-line { display: block; width: 32px; height: 2px; margin: 0 auto 18px; background: var(--login-accent); }
.login-card-footer p { margin: 0 0 8px; color: var(--login-muted); font-size: 11px; }
.login-card-footer small { color: var(--login-muted); font-size: 10px; letter-spacing: .5px; }
.login-welcome { padding-bottom: 12px; color: #fffdf5; text-shadow: 0 2px 18px rgba(0, 0, 0, .35); }
.welcome-eyebrow { display: flex; align-items: center; gap: 10px; margin-bottom: 28px; font-size: 10px; font-weight: 700; letter-spacing: 2.2px; }
.welcome-eyebrow > span { width: 7px; height: 7px; border-radius: 50%; background: var(--login-accent); box-shadow: 0 0 0 4px rgba(220, 184, 38, .16); }
.login-welcome h2 { margin: 0; font-size: clamp(42px, 4.5vw, 68px); font-weight: 750; line-height: 1.12; letter-spacing: -2.8px; }
.login-welcome h2 em { font-style: normal; color: var(--login-accent); }
.welcome-description { max-width: 300px; margin: 28px 0 0; color: #f1ede3; font-size: 15px; line-height: 1.8; }
.welcome-signature { display: flex; align-items: center; gap: 14px; margin-top: 42px; font-size: 14px; font-weight: 650; letter-spacing: -.3px; }
.welcome-signature > span { width: 36px; height: 2px; background: var(--login-accent); }
.login-page-footer { position: absolute; bottom: 22px; left: 0; width: 100%; padding: 0 40px; display: flex; justify-content: space-between; align-items: center; color: #fffdf5; text-shadow: 0 1px 5px rgba(0, 0, 0, .8); font-size: 9px; font-weight: 650; letter-spacing: 2px; }
.slideshow-controls { display: flex; align-items: center; gap: 14px; font-variant-numeric: tabular-nums; }
.slideshow-controls button { display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid rgba(255, 253, 245, .5); border-radius: 50%; color: inherit; background: rgba(35, 31, 32, .5); }
.play-icon, [aria-pressed="true"] > .pause-icon { display: none; }
[aria-pressed="true"] > .play-icon { display: block; }
@media (min-width: 1500px) {
    .login-layout { gap: 140px; }
}
@media (max-width: 1000px) {
    .login-layout { padding: 64px 36px; grid-template-columns: 360px minmax(0, 1fr); gap: 40px; }
    .login-card { padding: 36px 32px 28px; }
    .login-welcome h2 { font-size: 44px; letter-spacing: -2px; }
    .welcome-eyebrow { font-size: 9px; letter-spacing: 1.3px; }
}
@media (max-width: 760px) {
    .login-layout { grid-template-columns: minmax(0, 398px); justify-content: center; gap: 0; padding: 52px 22px 76px; }
    .login-welcome { display: none; }
    .login-card { width: 100%; }
    .background-diagonal { clip-path: polygon(100% 18%, 100% 100%, 0 100%, 0 62%); }
    .background-tint { background: rgba(16, 15, 14, .16); }
    .login-page-footer { padding: 0 24px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; }
    .slideshow-controls { display: none; }
}
