:root {
    --ink: #152521;
    --muted: #64736f;
    --panel: #ffffff;
    --line: #d9e5e0;
    --line-strong: #bfd2ca;
    --campus-950: #0d302b;
    --campus-900: #123f38;
    --campus-800: #17584d;
    --campus-700: #1e7464;
    --campus-100: #ddf2eb;
    --campus-50: #eff9f5;
    --accent: #f4bd51;
    --accent-soft: #fff3d3;
    --danger: #bc503c;
    --focus: rgba(30, 116, 100, 0.2);
    --shadow-lg: 0 32px 90px rgba(23, 65, 56, 0.17);
    --shadow-md: 0 20px 55px rgba(20, 47, 41, 0.12);
}

* {
    box-sizing: border-box;
}

html {
    color-scheme: light;
}

body {
    min-height: 100vh;
    min-height: 100svh;
    margin: 0;
    overflow-x: hidden;
    color: var(--ink);
    background:
        linear-gradient(140deg, rgba(224, 242, 235, 0.74), rgba(247, 249, 247, 0.94) 46%, rgba(255, 244, 217, 0.58)),
        #f4f8f6;
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
}

button,
input,
select {
    font: inherit;
}

button,
select {
    cursor: pointer;
}

.page-glow {
    position: fixed;
    z-index: -1;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    filter: blur(4px);
    pointer-events: none;
}

.page-glow-one {
    top: -230px;
    right: -120px;
    background: rgba(244, 189, 81, 0.21);
}

.page-glow-two {
    bottom: -280px;
    left: -150px;
    background: rgba(30, 116, 100, 0.15);
}

.login-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(430px, 0.92fr);
    align-items: center;
    width: min(1180px, calc(100% - 40px));
    min-height: 100vh;
    min-height: 100svh;
    margin: 0 auto;
    gap: 34px;
    padding: 28px 0;
}

/* Brand experience */
.brand-panel {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: min(720px, calc(100svh - 56px));
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 32px;
    padding: 34px 38px;
    color: #f7fffc;
    background:
        radial-gradient(circle at 88% 10%, rgba(244, 189, 81, 0.24), transparent 29%),
        radial-gradient(circle at 12% 90%, rgba(79, 185, 157, 0.22), transparent 31%),
        linear-gradient(145deg, var(--campus-950), var(--campus-800));
    box-shadow: var(--shadow-lg);
}

.brand-panel::before,
.brand-panel::after {
    content: "";
    position: absolute;
    pointer-events: none;
}

.brand-panel::before {
    inset: 0;
    opacity: 0.25;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.14) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.14) 1px, transparent 1px);
    background-size: 52px 52px;
    mask-image: linear-gradient(125deg, #000, transparent 68%);
}

.brand-panel::after {
    top: 128px;
    right: -82px;
    width: 250px;
    height: 250px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    box-shadow:
        0 0 0 34px rgba(255, 255, 255, 0.025),
        0 0 0 70px rgba(255, 255, 255, 0.018);
}

.brand-header,
.brand-copy,
.attendance-preview {
    position: relative;
    z-index: 1;
}

.brand-header {
    display: flex;
    align-items: center;
    gap: 13px;
}

.brand-mark {
    display: grid;
    flex: 0 0 auto;
    grid-template-columns: repeat(3, 1fr);
    width: 46px;
    height: 46px;
    border: 1px solid rgba(255, 255, 255, 0.32);
    border-radius: 14px;
    gap: 4px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.17);
}

.brand-mark span {
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.92);
}

.brand-mark span:nth-child(5),
.brand-mark span:nth-child(8) {
    background: var(--accent);
}

.brand-name {
    display: grid;
    gap: 2px;
}

.brand-name strong {
    color: #ffffff;
    font-size: 0.96rem;
    letter-spacing: 0.08em;
}

.brand-name span {
    color: rgba(239, 255, 249, 0.66);
    font-size: 0.77rem;
}

.system-online {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 999px;
    gap: 7px;
    margin-left: auto;
    padding: 5px 10px;
    color: rgba(242, 255, 250, 0.78);
    background: rgba(5, 35, 30, 0.28);
    font-size: 0.72rem;
    font-weight: 700;
}

.system-online i,
.live-chip i,
.secure-label i {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #62d6ae;
    box-shadow: 0 0 0 4px rgba(98, 214, 174, 0.12);
}

.brand-copy {
    max-width: 590px;
    margin: auto 0;
    padding: 42px 0 34px;
}

.eyebrow,
.form-kicker {
    display: block;
    margin: 0 0 13px;
    color: var(--accent);
    font-size: 0.73rem;
    font-weight: 800;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.brand-panel h1 {
    max-width: 600px;
    margin: 0;
    color: #ffffff;
    font-size: clamp(2.45rem, 4vw, 3.65rem);
    font-weight: 760;
    letter-spacing: -0.045em;
    line-height: 1.02;
}

.brand-copy > p:last-of-type {
    max-width: 540px;
    margin: 20px 0 0;
    color: rgba(239, 255, 249, 0.72);
    font-size: 1rem;
    line-height: 1.65;
}

.feature-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 30px;
}

.feature-item {
    min-width: 0;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 17px;
    padding: 13px;
    background: rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(8px);
}

.feature-icon {
    display: inline-grid;
    place-items: center;
    width: 27px;
    height: 27px;
    border-radius: 9px;
    margin-bottom: 11px;
    color: var(--campus-950);
    background: var(--accent);
    font-size: 0.66rem;
    font-weight: 900;
}

.feature-item strong,
.feature-item span {
    display: block;
}

.feature-item strong {
    color: #ffffff;
    font-size: 0.82rem;
    line-height: 1.25;
}

.feature-item div > span {
    margin-top: 6px;
    color: rgba(239, 255, 249, 0.59);
    font-size: 0.7rem;
    line-height: 1.35;
}

.attendance-preview {
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 20px;
    padding: 17px 18px 18px;
    background: rgba(5, 35, 30, 0.43);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.preview-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding-bottom: 15px;
}

.preview-header div {
    display: grid;
    gap: 3px;
}

.preview-header span {
    color: rgba(239, 255, 249, 0.52);
    font-size: 0.68rem;
}

.preview-header strong {
    color: #ffffff;
    font-size: 0.86rem;
}

.live-chip {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    gap: 7px;
    padding: 6px 9px;
    color: #aaf0d7 !important;
    background: rgba(98, 214, 174, 0.1);
    font-weight: 800;
    text-transform: uppercase;
}

.workflow-line {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr;
    align-items: center;
    gap: 10px;
}

.workflow-line > i {
    width: 28px;
    height: 1px;
    background: rgba(255, 255, 255, 0.22);
}

.workflow-step {
    display: flex;
    align-items: center;
    min-width: 0;
    gap: 9px;
}

.workflow-step span {
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    width: 27px;
    height: 27px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 9px;
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.68rem;
    font-weight: 800;
}

.workflow-step strong {
    overflow: hidden;
    color: rgba(239, 255, 249, 0.7);
    font-size: 0.72rem;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.workflow-step.is-complete span {
    border-color: rgba(98, 214, 174, 0.32);
    color: #aaf0d7;
    background: rgba(98, 214, 174, 0.1);
}

.workflow-step.is-current span {
    border-color: var(--accent);
    color: var(--campus-950);
    background: var(--accent);
}

/* Sign-in card */
.login-panel {
    display: flex;
    justify-content: center;
}

.login-card {
    width: min(100%, 460px);
    border: 1px solid rgba(204, 219, 213, 0.82);
    border-radius: 28px;
    padding: 38px;
    background: rgba(255, 255, 255, 0.91);
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(18px);
}

.form-header {
    margin-bottom: 24px;
}

.form-kicker {
    margin-bottom: 9px;
    color: var(--campus-700);
}

.form-header h2 {
    margin: 0;
    color: var(--ink);
    font-size: 2rem;
    font-weight: 760;
    letter-spacing: -0.035em;
    line-height: 1.1;
}

.form-header p {
    margin: 11px 0 0;
    color: var(--muted);
    font-size: 0.91rem;
    line-height: 1.5;
}

.access-switch {
    display: grid;
    grid-template-columns: 0.88fr 1.12fr;
    gap: 7px;
    border: 1px solid var(--line);
    border-radius: 18px;
    margin-bottom: 22px;
    padding: 5px;
    background: #eef4f1;
}

.access-option {
    display: flex;
    align-items: center;
    min-width: 0;
    min-height: 58px;
    border: 1px solid transparent;
    border-radius: 13px;
    gap: 9px;
    padding: 8px 10px;
    color: #64736f;
    background: transparent;
    text-align: left;
    transition: color 0.18s ease, background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.access-option:hover {
    color: var(--campus-800);
}

.access-option[aria-pressed="true"] {
    border-color: #d9e6e1;
    color: var(--campus-900);
    background: #ffffff;
    box-shadow: 0 5px 14px rgba(23, 65, 56, 0.09);
}

.access-option-icon {
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    width: 31px;
    height: 31px;
    border-radius: 10px;
    color: var(--campus-800);
    background: var(--campus-100);
    font-size: 0.65rem;
    font-weight: 900;
}

.access-option > span:last-child,
.access-option strong,
.access-option small {
    display: block;
    min-width: 0;
}

.access-option strong {
    overflow: hidden;
    font-size: 0.78rem;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.access-option small {
    margin-top: 3px;
    color: #84928e;
    font-size: 0.64rem;
    line-height: 1.1;
}

.field {
    margin-bottom: 16px;
}

.field[hidden] {
    display: none;
}

.field > label {
    display: block;
    margin-bottom: 7px;
    color: #2a3b36;
    font-size: 0.82rem;
    font-weight: 750;
}

.input-shell {
    display: flex;
    align-items: center;
    min-height: 52px;
    overflow: hidden;
    border: 1px solid var(--line-strong);
    border-radius: 14px;
    background: rgba(250, 252, 251, 0.92);
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.input-shell:focus-within {
    border-color: var(--campus-700);
    background: #ffffff;
    box-shadow: 0 0 0 4px var(--focus);
}

.field-icon {
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    width: 31px;
    height: 31px;
    border-radius: 10px;
    margin-left: 10px;
    color: var(--campus-700);
    background: var(--campus-50);
    font-size: 0.63rem;
    font-weight: 900;
}

.input-shell input,
.input-shell select {
    width: 100%;
    min-width: 0;
    min-height: 50px;
    border: 0;
    outline: none;
    padding: 0 12px;
    color: var(--ink);
    background: transparent;
    font-size: 0.91rem;
}

.input-shell input::placeholder {
    color: #9aa6a2;
}

.input-shell select {
    padding-right: 10px;
}

.password-shell input {
    padding-right: 4px;
}

.password-toggle {
    flex: 0 0 auto;
    min-height: 32px;
    border: 0;
    border-radius: 9px;
    margin-right: 9px;
    padding: 0 9px;
    color: var(--campus-700);
    background: var(--campus-50);
    font-size: 0.68rem;
    font-weight: 800;
}

.password-toggle:hover,
.password-toggle:focus-visible {
    color: var(--campus-950);
    background: var(--campus-100);
}

.form-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin: 2px 0 19px;
    color: var(--muted);
    font-size: 0.78rem;
}

.remember,
.secure-label {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.remember {
    cursor: pointer;
}

.remember input {
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: var(--campus-700);
}

.secure-label {
    color: var(--campus-700);
    font-weight: 750;
    white-space: nowrap;
}

.secure-label i {
    width: 6px;
    height: 6px;
    box-shadow: none;
}

.login-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 52px;
    border: 0;
    border-radius: 14px;
    gap: 10px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--campus-700), var(--campus-900));
    box-shadow: 0 14px 28px rgba(18, 63, 56, 0.22);
    font-size: 0.91rem;
    font-weight: 800;
    transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

.login-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 34px rgba(18, 63, 56, 0.27);
}

.login-button:focus-visible,
.access-option:focus-visible,
.remember input:focus-visible {
    outline: 3px solid var(--focus);
    outline-offset: 2px;
}

.login-button:disabled {
    cursor: wait;
    opacity: 0.7;
    transform: none;
    box-shadow: none;
}

.login-message {
    min-height: 20px;
    margin: 11px 0 0;
    color: var(--danger);
    font-size: 0.78rem;
    line-height: 1.4;
    text-align: center;
}

.login-message:empty {
    min-height: 8px;
    margin-top: 6px;
}

.login-message.success {
    color: var(--campus-700);
}

.login-trust {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 10px;
    border-top: 1px solid var(--line);
    margin-top: 10px;
    padding-top: 16px;
}

.trust-icon {
    display: grid;
    place-items: center;
    width: 29px;
    height: 29px;
    border-radius: 10px;
    color: var(--campus-800);
    background: var(--campus-100);
    font-size: 0.74rem;
    font-weight: 900;
}

.login-trust p,
.login-trust strong,
.login-trust span {
    display: block;
    margin: 0;
}

.login-trust strong {
    color: #32423e;
    font-size: 0.73rem;
    line-height: 1.25;
}

.login-trust p > span {
    margin-top: 3px;
    color: #7a8985;
    font-size: 0.67rem;
    line-height: 1.35;
}

@media (max-width: 980px) {
    .login-shell {
        grid-template-columns: 1fr;
        width: min(720px, calc(100% - 32px));
        gap: 18px;
        padding: 18px 0 28px;
    }

    .brand-panel {
        min-height: auto;
        padding: 30px;
    }

    .brand-copy {
        padding: 46px 0 30px;
    }

    .brand-panel h1 {
        max-width: 630px;
        font-size: clamp(2.35rem, 7vw, 3.5rem);
    }

    .login-panel {
        align-items: stretch;
    }

    .login-card {
        width: 100%;
    }
}

@media (max-width: 600px) {
    .login-shell {
        width: min(100% - 20px, 720px);
        gap: 11px;
        padding: 10px 0 20px;
    }

    .brand-panel {
        border-radius: 24px;
        padding: 22px;
    }

    .brand-mark {
        width: 42px;
        height: 42px;
        border-radius: 13px;
        padding: 7px;
    }

    .brand-name span {
        display: none;
    }

    .system-online {
        padding: 5px 8px;
        font-size: 0.66rem;
    }

    .brand-copy {
        padding: 40px 0 6px;
    }

    .brand-panel h1 {
        font-size: clamp(2rem, 10vw, 2.75rem);
    }

    .brand-copy > p:last-of-type {
        margin-top: 14px;
        font-size: 0.88rem;
        line-height: 1.5;
    }

    .feature-list,
    .attendance-preview {
        display: none;
    }

    .login-card {
        border-radius: 24px;
        padding: 25px 20px;
    }

    .form-header h2 {
        font-size: 1.75rem;
    }

    .access-switch {
        grid-template-columns: 0.86fr 1.14fr;
    }

    .access-option {
        gap: 7px;
        padding: 7px;
    }

    .access-option-icon {
        width: 28px;
        height: 28px;
    }

    .access-option strong {
        font-size: 0.71rem;
    }

    .access-option small {
        display: none;
    }

    .form-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
