/* Login / sign-up page (comp MS COMPUTER_LOGIN). Same unit as the site: 1rem = 100 px of the 1920 x 1080 frame. */
body.login-page { background: #050407; overflow: auto; color: #fff; min-height: 100vh; }

.card { position: fixed; left: .24rem; top: .24rem; bottom: .24rem; width: 9.6rem; border-radius: .36rem; overflow: hidden; background: url("../assets/degrade_login.jpg") center / cover; }
.card-dots { position: absolute; inset: 0; background-image: radial-gradient(circle at center, rgba(118, 112, 124, .647) .013rem, transparent .017rem); background-size: .12rem .12rem; background-position: center;
    -webkit-mask-image: radial-gradient(3.4rem 1.2rem at 50% calc(50% + .56rem), rgba(0, 0, 0, .18) 45%, #000 100%); mask-image: radial-gradient(3.4rem 1.2rem at 50% calc(50% + .56rem), rgba(0, 0, 0, .18) 45%, #000 100%); }
.card-in { position: absolute; left: 50%; top: 50%; transform: translateY(-50%); width: 5rem; margin-left: -2.5rem; text-align: center; }
.card-logo { display: block; width: 1.25rem; margin: 0 auto; }
.card-logo svg { display: block; width: 100%; height: auto; }
.card-sub { margin-top: .38rem; font-size: .2rem; line-height: .28rem; font-weight: 500; letter-spacing: -.01em; color: #EADFF0; }   /* subtitle: medium */
.steps { list-style: none; margin: .4rem 0 0; padding: 0; text-align: left; }
.steps li { display: flex; align-items: center; height: .74rem; border-radius: .14rem; background: rgba(26, 24, 32, .88); margin-bottom: .12rem; padding-left: .23rem; font: 500 .22rem var(--sans); }
.steps li:last-child { margin-bottom: 0; }
.steps li.on { background: #fff; color: #120E15; }
.steps i { display: flex; align-items: center; justify-content: center; width: .3rem; height: .3rem; border-radius: 50%; background: #2E2B33; color: #8E8896; font: 500 .15rem var(--sans); margin-right: .17rem; }
.steps li.on i { background: #120E15; color: #fff; }

.form { position: fixed; left: calc(50% + 1.7rem); top: calc(50% - 3.54rem); width: 6.4rem; }
.form h1 { font: 500 .54rem/.6rem var(--sans); letter-spacing: -.03em; text-align: center; }
.form-sub { margin-top: .06rem; font-size: .2rem; line-height: .3rem; color: #8E8896; text-align: center; }
.oauth { display: grid; grid-template-columns: 1fr 1fr; gap: .16rem; margin-top: .36rem; }
.oauth a { display: flex; align-items: center; justify-content: center; gap: .1rem; height: .64rem; border-radius: .14rem; background: #0C0B0E; box-shadow: inset 0 0 0 .012rem rgba(255, 255, 255, .14); font: 500 .21rem var(--sans); }
.oauth svg { width: .24rem; height: .24rem; }
.oauth .g { font: 700 .22rem var(--sans); }
.or { position: relative; text-align: center; height: .2rem; margin-top: .465rem; font: 500 .13rem/.2rem var(--sans); letter-spacing: .1em; color: #8E8896; }
.or::before { content: ""; position: absolute; left: 0; right: 0; top: .1rem; height: .01rem; background: rgba(255, 255, 255, .12); }
.or span { position: relative; background: #050407; padding: 0 .12rem; }
form { margin-top: .305rem; }
.form label { display: block; position: relative; font: 500 .19rem/.26rem var(--sans); margin-bottom: .25rem; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: .16rem; }
.form input { display: block; box-sizing: border-box; width: 100%; height: .64rem; margin-top: .09rem; padding: 0 .22rem; border: 0; border-radius: .12rem; background: #1C1B20; color: #fff; font: 400 .2rem var(--sans); letter-spacing: -.01em; outline: 0; }
.form input::placeholder { color: #5E5966; }
.form input:focus { box-shadow: inset 0 0 0 .015rem var(--lilac); }
.pw { margin-bottom: 0 !important; }
.eye { position: absolute; right: .2rem; bottom: .24rem; width: .24rem; height: .16rem; color: #8E8896; }
.eye svg { display: block; width: 100%; height: 100%; }
.help { margin-top: .15rem; font-size: .15rem; line-height: .2rem; font-weight: 300; color: #8E8896; }   /* sub-text: light */
.submit { display: block; width: 100%; height: .72rem; margin-top: .23rem; border-radius: .14rem; background: #fff; color: #120E15; font: 500 .22rem var(--sans); }
.have { margin-top: .32rem; font-size: .19rem; line-height: .3rem; font-weight: 300; color: #8E8896; text-align: center; }
.have a { color: #fff; font-weight: 500; }

/* CLI get-started block, in place of the sign-up form (same field styling). */
.cli { margin-top: .36rem; }
.cli-label { font: 500 .19rem/.26rem var(--sans); margin: .25rem 0 .09rem; }
.cli-box { margin: 0; box-sizing: border-box; width: 100%; padding: .2rem .22rem; border-radius: .12rem; background: #1C1B20; color: #fff; font: 400 .18rem/.3rem var(--mono); white-space: pre-wrap; word-break: break-all; }
.help code { font-family: var(--mono); color: #fff; }
.form-logo { display: none; }                  /* phone only: the card, with its logo, is not shown there */
.form-sub b { font-weight: 500; }               /* highlight: medium */
.copy { height: .56rem; margin-top: .12rem; font-size: .2rem; }
.copy + .cli-label { margin-top: .3rem; }
.cli .help { margin-top: .22rem; }
/* Secondary destinations: legible labels, visible link affordance, and generous touch targets. */
.links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 20px; }
.links a { display: flex; align-items: center; justify-content: space-between; gap: 12px; box-sizing: border-box; min-width: 0; min-height: 48px; padding: 12px 18px; border: 1px solid #685575; border-radius: 12px; background: #18111F; color: #EADFF0; font: 500 clamp(16px, .2rem, 20px)/1.25 var(--sans); text-decoration: none; transition: background-color .18s ease, border-color .18s ease, color .18s ease; }
.links svg { flex: 0 0 16px; width: 16px; height: 16px; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
@media (hover: hover) {
    .links a:hover { background: #2B1B38; border-color: #B99BCA; color: #fff; }
}
.links a:focus-visible { outline: 2px solid #EADFF0; outline-offset: 4px; background: #2B1B38; }
.links a:active { background: #352342; border-color: #D8C8E2; }
@media (prefers-reduced-motion: reduce) { .links a { transition: none; } }

@media (max-aspect-ratio: 1/1), (max-width: 900px) {
    .card { display: none; }                       /* phone: no card on top (client, 12/11/2026) */
    body.login-page { display: flex; flex-direction: column; min-height: 100vh; min-height: 100svh; }
    .form-logo { display: block; width: .44rem; margin: 0 auto .22rem; }   /* the site's phone logo size; back to the first screen */
    .form-logo svg { display: block; width: 100%; height: auto; }
    .card-dots { background-size: .1rem .1rem; background-image: radial-gradient(circle at center, rgba(118, 112, 124, .647) .009rem, transparent .012rem); }
    .card-in { top: .26rem; width: 3rem; margin-left: -1.5rem; }
    .card-logo { width: .6rem; }
    .card-sub { margin-top: .12rem; font-size: .135rem; line-height: .19rem; }
    .steps { display: none; }
    .form { position: static; width: auto; margin: auto .24rem; padding: .3rem 0; }   /* centred on the page; top-aligned if it is taller */
    .form h1 { font-size: .3rem; line-height: .36rem; }
    .form-sub { margin-top: .04rem; font-size: .135rem; line-height: .2rem; }
    .oauth { gap: .1rem; margin-top: .2rem; }
    .oauth a { height: .46rem; border-radius: .1rem; font-size: .15rem; gap: .07rem; }
    .oauth svg { width: .18rem; height: .18rem; }
    .oauth .g { font-size: .16rem; }
    .or { margin-top: .16rem; height: .16rem; font-size: .1rem; line-height: .16rem; }
    .or::before { top: .08rem; }
    form { margin-top: .14rem; }
    .form label { font-size: .135rem; line-height: .18rem; margin-bottom: .12rem; }
    .two { gap: .1rem; }
    .form input { height: .46rem; margin-top: .05rem; padding: 0 .14rem; border-radius: .09rem; font-size: 16px; }
    .eye { right: .14rem; bottom: .15rem; width: .2rem; height: .14rem; }
    .help { margin-top: .08rem; font-size: .115rem; line-height: .16rem; }
    .submit { height: .5rem; margin-top: .14rem; border-radius: .1rem; font-size: .16rem; }
    .have { margin-top: .14rem; font-size: .135rem; line-height: .2rem; }
    body.login-page { overflow: auto; }
 .cli { margin-top: .2rem; }
 .cli-label { font-size: .135rem; line-height: .18rem; margin: .14rem 0 .05rem; }
 .cli-box { padding: .12rem .14rem; border-radius: .09rem; font-size: .12rem; line-height: .2rem; }
 .copy { height: .42rem; margin-top: .08rem; font-size: .15rem; }
 .copy + .cli-label { margin-top: .18rem; }
 .links { gap: 10px; margin-top: 18px; }
 .links a { min-height: 50px; padding: 13px 16px; font-size: 16px; }
 .card-dots { -webkit-mask-image: none; mask-image: none; }
}

/* A phone turned sideways needs a readable, scrollable layout too. */
@media (max-width: 900px) and (min-aspect-ratio: 1/1) {
    html { font-size: 100px; }
    .form { width: min(520px, calc(100% - 48px)); margin: auto; }
}
