:root {
    color-scheme: light;
}

.login-page {
    min-height: 100vh;
    overflow-x: hidden;
    background: var(--canvas);
}

.login-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(520px, .9fr) minmax(620px, 1.1fr);
}

.login-identity {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 48px clamp(48px, 6vw, 96px);
    overflow: hidden;
    color: #eaf5f3;
    background: #102d30;
}

.login-identity::before,
.login-identity::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.login-identity::before {
    width: 420px;
    height: 420px;
    right: -210px;
    top: 17%;
    border: 1px solid rgba(114, 201, 192, .18);
    box-shadow: 0 0 0 70px rgba(114, 201, 192, .035), 0 0 0 140px rgba(114, 201, 192, .025);
}

.login-identity::after {
    width: 180px;
    height: 180px;
    left: -90px;
    bottom: 8%;
    background: rgba(22, 139, 131, .13);
}

.login-brand {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 14px;
}

.login-brand .brand-mark {
    width: 46px;
    height: 46px;
}

.login-brand strong,
.login-brand small {
    display: block;
}

.login-brand strong {
    color: #fff;
    font-size: 17px;
    letter-spacing: .17em;
}

.login-brand small {
    margin-top: 2px;
    color: #91acab;
    font-size: 11px;
}

.identity-copy {
    position: relative;
    z-index: 1;
    max-width: 580px;
    margin: auto 0;
}

.login-eyebrow {
    color: #72c9c0;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .14em;
}

.identity-copy h1 {
    max-width: 540px;
    margin: 18px 0 20px;
    color: #fff;
    font-size: clamp(42px, 4.2vw, 64px);
    line-height: 1.06;
    letter-spacing: -.045em;
}

.identity-copy p {
    max-width: 520px;
    margin: 0;
    color: #aec4c2;
    font-size: 16px;
    line-height: 1.75;
}

.identity-context {
    position: relative;
    z-index: 1;
    padding-top: 22px;
    border-top: 1px solid rgba(255,255,255,.1);
}

.identity-context span,
.identity-context strong,
.identity-context small {
    display: block;
}

.identity-context span {
    color: #789897;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.identity-context strong {
    margin: 5px 0 2px;
    color: #fff;
    font-size: 15px;
}

.identity-context small {
    color: #91acab;
    font-size: 11px;
}

.login-panel {
    display: grid;
    place-items: center;
    align-content: center;
    gap: 22px;
    min-height: 100vh;
    padding: 48px;
    background: #f7f9fa;
}

.login-card {
    width: min(100%, 470px);
    padding: 44px;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: var(--surface);
    box-shadow: 0 18px 60px rgba(16, 45, 48, .1);
}

.login-card-heading h2 {
    margin: 8px 0 6px;
    color: var(--ink);
    font-size: 32px;
    letter-spacing: -.03em;
}

.login-card-heading p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

.login-form {
    display: grid;
    gap: 18px;
    margin-top: 30px;
}

.login-form label > span {
    display: block;
    margin-bottom: 8px;
    color: var(--ink);
    font-size: 12px;
    font-weight: 700;
}

.login-form input {
    width: 100%;
    height: 50px;
    padding: 0 15px;
    border: 1px solid #cfd9dd;
    border-radius: 11px;
    outline: none;
    color: var(--ink);
    background: #fff;
    font-size: 14px;
    transition: border-color .18s ease, box-shadow .18s ease;
}

.login-form input:focus {
    border-color: var(--brand-mid);
    box-shadow: 0 0 0 4px rgba(22, 139, 131, .11);
}

.login-submit {
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 4px;
    border: 0;
    border-radius: 11px;
    color: #fff;
    background: var(--brand);
    box-shadow: 0 8px 18px rgba(13, 91, 87, .2);
    font-size: 14px;
    font-weight: 750;
    transition: background .18s ease, transform .18s ease;
}

.login-submit:hover {
    background: var(--brand-hover);
    transform: translateY(-1px);
}

.login-error {
    margin: -7px 0 0;
    color: var(--danger);
    font-size: 12px;
}

.demo-access-note {
    margin-top: 24px;
    padding: 13px 14px;
    border: 1px solid #cfe4e1;
    border-radius: 11px;
    background: var(--brand-soft);
}

.demo-access-note span {
    color: var(--brand);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .11em;
}

.demo-access-note p {
    margin: 4px 0 0;
    color: #3f605f;
    font-size: 11px;
    line-height: 1.55;
}

.login-footer {
    margin: 0;
    color: var(--quiet);
    font-size: 11px;
}

@media (max-width: 960px) {
    .login-shell { grid-template-columns: 1fr; }
    .login-identity { min-height: auto; padding: 32px; }
    .identity-copy { margin: 70px 0; }
    .identity-copy h1 { font-size: 42px; }
    .login-panel { min-height: auto; padding: 56px 24px; }
}

@media (max-width: 560px) {
    .login-identity { padding: 24px; }
    .identity-copy { margin: 54px 0; }
    .identity-copy h1 { font-size: 34px; }
    .identity-copy p { font-size: 14px; }
    .login-panel { padding: 36px 16px; }
    .login-card { padding: 28px 22px; }
}
