/* Subcreativ on a computer: the phone gate opened up into two sides.
   Left is the moment (clock and greeting, larger and calm); right is the task (a login card that never moves).
   Phones keep the Swassana gate exactly as it is: everything here sits behind the media query,
   apart from hiding the desktop-only pieces. */
.gate-card-head, .gate-foot, .gate-tip { display: none; }
.gate-caps { margin: -6px 0 0; font-size: 13px; font-weight: 600; color: var(--accent); }
/* the error must be readable at a glance (the pale red was hard to see on the cream background) */
html .gate .gate-err { color: #b3261e; font-weight: 600; }

@media (min-width: 960px) and (min-height: 600px) and (hover: hover) {
  html .gate .gate-inner {
    position: relative; max-width: 1200px; min-height: 100vh; margin: 0 auto; padding: 112px 64px 96px;
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(380px, 420px); grid-template-areas: "clock card" "hello card";
    align-content: center; column-gap: clamp(56px, 8vw, 128px); row-gap: 56px;
  }
  html .gate .logo { position: absolute; top: 40px; left: 64px; padding: 0; }
  html .gate .logo .logo-mark { width: 40px; height: 40px; }
  html .gate .logo .logo-word i { font-size: 13px; }

  /* the moment */
  html .gate .gate-clock { grid-area: clock; align-self: end; }
  html .gate .gkal { text-align: left; }
  html .gate .gkal p { font-size: clamp(44px, 4.3vw, 64px); line-height: 1.06; text-wrap: balance; }
  html .gate .gkal small { margin-top: 18px; font-size: 15px; }
  html .gate .glens { justify-items: start; }
  html .gate .glens-dial { width: clamp(240px, 22vw, 300px); }
  html .gate .glens-cap { justify-self: start; max-width: none; margin-inline: 0; text-align: left; font-size: 15px; }
  html .gate .gate-hello { grid-area: hello; align-self: start; text-align: left; max-width: 520px; }
  html .gate .gate-hello, html .gate .gate-hello * { text-align: left; }
  html .gate .hello-tag { justify-content: flex-start; }
  html .gate h1.hello, html .gate .hello-tr { margin-left: 0; margin-right: 0; }
  html .gate h1.hello { font-size: 34px; }
  html .gate h1.hello .h2l { font-size: .5em; letter-spacing: 0; margin-top: 4px; }
  html .gate .hello-tr { margin-top: 8px; font-size: 13px; }
  html .gate .gate-hello .muted { display: none; }
  html .gate .gate-tip { display: block; margin: 14px 0 0; font-size: 12.5px; color: var(--muted); opacity: 0; transition: opacity .3s; }
  html .gate .gate-hello:hover .gate-tip { opacity: 1; }
  html .gate .gate-clock, html .gate .gate-hello { cursor: default; user-select: none; }

  /* the task */
  html .gate form {
    grid-area: card; align-self: center; margin: 0; gap: 14px; padding: 36px 34px 30px; border-radius: 30px;
    background: color-mix(in srgb, var(--surface) 72%, transparent); border: 1px solid var(--line);
    box-shadow: 0 50px 100px -60px rgba(58, 42, 34, .55), inset 0 1px 0 rgba(255, 255, 255, .6);
    backdrop-filter: blur(22px) saturate(1.3); -webkit-backdrop-filter: blur(22px) saturate(1.3);
  }
  html .gate .gate-card-head { display: block; margin-bottom: 10px; }
  html .gate .gate-card-head h2 { margin: 0; font: 650 28px/1.1 var(--sans); letter-spacing: -.03em; color: var(--text); }
  html .gate .gate-card-head p { margin: 8px 0 0; font-size: 14px; line-height: 1.5; color: var(--muted); }
  html .gate input, html .gate .big-btn { min-height: 52px; }
  html .gate input { font-size: 16px; letter-spacing: .02em; transition: border-color .15s, box-shadow .15s; }
  html .gate input:hover { border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }
  html .gate .gate-err:empty { display: none; }
  html .gate .gate-err { margin: -2px 0 0; }
  html .gate .big-btn { margin-top: 6px; transition: transform .15s, filter .15s; }
  html .gate .big-btn:not(:disabled):hover { filter: brightness(1.18); }
  html .gate .big-btn:not(:disabled):active { transform: scale(.985); }
  html .gate .pw button:hover { text-decoration: underline; text-underline-offset: 3px; }
  html .gate :focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
  html .gate input:focus-visible { outline: none; }
  html .gate .gate-kbd { display: block; margin-top: 2px; text-align: center; font-size: 12px; color: var(--muted); }
  html .gate .gate-kbd kbd { font: 600 11px var(--sans); padding: 2px 6px; border-radius: 6px; border: 1px solid var(--line); background: var(--surface); }

  html .gate .gate-foot { display: flex; justify-content: space-between; position: absolute; left: 64px; right: 64px; bottom: 32px; font-size: 12.5px; color: var(--muted); }
}
@media (min-width: 960px) and (min-height: 600px) and (hover: hover) and (max-height: 760px) {
  html .gate .gate-inner { padding-top: 96px; padding-bottom: 72px; row-gap: 32px; }
  html .gate .gkal p { font-size: clamp(40px, 4vw, 56px); }
  html .gate .glens-dial { width: 220px; }
}
