:root {
    --page: #071225;
    --page-deep: #030914;
    --surface: rgba(13, 29, 55, .78);
    --border: rgba(178, 213, 255, .16);
    --text: #f7faff;
    --muted: #a5b4cc;
    --accent: #43d6ff;
    --accent-deep: #2678ff;
    --success: #50e5a4;
}

* { box-sizing: border-box; }

body.login-page {
    min-height: 100vh;
    margin: 0;
    color: var(--text);
    background: linear-gradient(rgba(3, 9, 20, .73), rgba(3, 9, 20, .83)), url("../../simpleBox/logo/wallpaper/login.png") center / cover fixed, radial-gradient(circle at 12% 12%, rgba(35, 102, 255, .36), transparent 31rem), var(--page-deep);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.login-page::before {
    position: fixed;
    inset: 0;
    z-index: -1;
    content: "";
    opacity: .38;
    background-image: linear-gradient(rgba(151, 195, 255, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(151, 195, 255, .035) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: linear-gradient(to bottom, #000, transparent 90%);
}

.login-shell { display: flex; flex-direction: column; width: min(1240px, calc(100% - 48px)); min-height: 100vh; margin: 0 auto; }
.login-header { display: flex; align-items: center; justify-content: center; min-height: 115px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; font-size: 1.3rem; font-weight: 800; letter-spacing: -.05em; text-decoration: none; }
.brand > span:last-child span { color: var(--accent); }
.brand-mark { display: flex; align-items: end; gap: 3px; width: 25px; height: 25px; padding: 4px; border-radius: 8px; background: linear-gradient(135deg, var(--accent), #5876ff); }
.brand-mark span { width: 4px; border-radius: 3px; background: #fff; }
.brand-mark span:nth-child(1) { height: 7px; }.brand-mark span:nth-child(2) { height: 12px; }.brand-mark span:nth-child(3) { height: 17px; }
.login-layout { display: flex; flex: 1; align-items: center; justify-content: center; padding: 34px 0 80px; }
.eyebrow { margin: 0 0 14px; color: var(--accent); font-size: .71rem; font-weight: 800; letter-spacing: .13em; }

.brand-logo {
    width: 100%;
    max-width: 160px;
}

.brand-title {
    display: flex;
    align-items: center;
    gap: 15px;
}

.brand-title .eyebrow {
    margin: 0;
}

.login-card-wrap { width: 100%; max-width: 430px; }.login-card { padding: clamp(28px, 4vw, 42px); border: 1px solid var(--border); border-radius: 22px; background: var(--surface); box-shadow: 0 34px 80px rgba(0, 0, 0, .33); backdrop-filter: blur(18px); }.card-heading h2 { margin: 0; font-size: 2rem; font-weight: 720; letter-spacing: -.055em; }.card-heading > p:last-child { margin: 11px 0 29px; color: var(--muted); font-size: .9rem; }
.form-group { margin-bottom: 20px; }.form-group label { display: block; margin-bottom: 8px; color: #dce8fa; font-size: .83rem; font-weight: 650; }.form-control { min-height: 49px; border: 1px solid rgba(176, 208, 251, .2); border-radius: 10px; color: #fff; background: rgba(4, 14, 31, .47); box-shadow: none; font-size: .93rem; }.form-control::placeholder { color: #7e91ae; }.form-control:focus { color: #fff; border-color: var(--accent); background: rgba(4, 14, 31, .65); box-shadow: 0 0 0 4px rgba(67, 214, 255, .12); }.label-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }.label-row a { color: var(--accent); font-size: .76rem; text-decoration: none; }.label-row a:hover { color: #b4f1ff; text-decoration: underline; }.password-control { position: relative; }.password-control .form-control { padding-right: 48px; }.password-toggle { position: absolute; top: 1px; right: 1px; width: 48px; height: calc(100% - 2px); padding: 0; border: 0; border-radius: 9px; color: #a6b8d3; background: transparent; }.password-toggle:hover, .password-toggle:focus { color: var(--accent); outline: none; }
.remember-control { display: flex; align-items: center; gap: 9px; margin: 3px 0 25px; color: var(--muted); font-size: .79rem; cursor: pointer; }.remember-control input[type="checkbox"] { width: 16px; height: 16px; margin: 0; accent-color: var(--accent-deep); }.remember-control input[type="hidden"] { display: none; }.btn-login { display: flex; align-items: center; justify-content: center; gap: 11px; width: 100%; min-height: 51px; border: 0; border-radius: 10px; color: #051326; background: linear-gradient(105deg, var(--accent), #7194ff); box-shadow: 0 12px 28px rgba(46, 146, 255, .27); font-size: .92rem; font-weight: 800; transition: transform .2s ease, box-shadow .2s ease; }.btn-login:hover { transform: translateY(-2px); box-shadow: 0 17px 32px rgba(46, 146, 255, .4); }.btn-login span { font-size: 1.2rem; }
.login-alert { display: flex; align-items: flex-start; gap: 9px; margin: 0 0 20px; padding: 12px; border: 1px solid rgba(255, 113, 124, .4); border-radius: 10px; color: #ffd7da; background: rgba(193, 41, 62, .16); font-size: .83rem; line-height: 1.4; }.login-alert span { display: inline-grid; flex: 0 0 17px; width: 17px; height: 17px; place-items: center; border-radius: 50%; color: #520e17; background: #ff8590; font-weight: 800; }

@media (max-width: 540px) { .login-shell { width: min(100% - 32px, 480px); }.login-header { min-height: 90px; }.login-layout { padding: 16px 0 42px; }.login-card { padding: 26px 21px; border-radius: 17px; }.card-heading h2 { font-size: 1.75rem; } }
@media (prefers-reduced-motion: reduce) { .btn-login { transition: none; } }
