/* ============================================================
   VIDRIO (GLASS) · SIGN-IN (ENTRAR, 2.8.82): idea 2, “One box”, from the redesign mockups (mockups/redesign-sign-in/)
   ============================================================
   On top of glass.css. The usual sign-in card, made of glass and centred over the time-of-day photo, with the
   corners of Daily's boxes and the fields and buttons as capsules. Same steps, fields, buttons and order as
   before (Entrar → «o» → Google → Apple → «He olvidado» → «Crear cuenta»: sign in, or, Google, Apple,
   forgot password, create account); the three sign-in buttons, 44 px.
   With no session there is no notebook and renderView doesn't draw: html.glass and the photo are set by openLogin
   (app/sync.js).
   The rules hang from html.glass and #loginOverlay. With the dark theme or at night, the same :is(…) key as the
   base: dark glass and white text. Its own tokens carry --ent-. */

/* with no session, the sign-in screen stops being a layer with its own scroll and becomes the page: that way the glass
   behaves like Daily's boxes, over the photo with no scrolling layer in between. If it doesn't fit, the page scrolls */
html.glass body.locked #loginOverlay{position:relative;inset:auto;min-height:100vh;min-height:100dvh;overflow:visible;overflow-x:hidden;overflow-x:clip;
  background:transparent;-webkit-backdrop-filter:none;backdrop-filter:none}
html.glass #loginOverlay{padding:calc(20px + env(safe-area-inset-top)) 16px calc(20px + env(safe-area-inset-bottom));
  --border:rgba(26,22,17,.13);--ent-campo:rgba(255,255,255,.5);--ent-filo:rgba(26,22,17,.13)}
/* at night with the light theme, the dark theme's colours, like the sections (glass.css) */
html.glass.gl-night #loginOverlay{--bg:#17191A;--surface:#212426;--surface-2:#1C1F20;--olive:#9DBE86;--olive-soft:#8AA978;--olive-bg:#293227;--olive-ink:#B8D4A4;
  --olive-fill:#9DBE86;--on-olive:#fff;--on-olive-sombra:none;
  --red:#D98C73;--red-bg:#382923;
  color:#F1EFEA}   /* the title has no colour of its own: it inherits the page's, which with the light theme is charcoal */
:is(:root[data-theme="dark"].glass,html.glass.gl-night) #loginOverlay{--text:#fff;--muted:rgba(255,255,255,.78);--faint:rgba(255,255,255,.62);--border:rgba(255,255,255,.16);
  --ent-campo:rgba(255,255,255,.08);--ent-filo:rgba(255,255,255,.18)}

/* the card: the glass of Daily's boxes */
html.glass #loginOverlay .login-card{max-width:400px;border:0;border-radius:28px;padding:28px 24px 12px;position:relative;animation:none;
  background:linear-gradient(180deg,rgba(255,255,255,.09),rgba(255,255,255,0) 42%),var(--vd-caja);
  -webkit-backdrop-filter:var(--vd-blur);backdrop-filter:var(--vd-blur);
  box-shadow:inset 0 0 0 1px var(--vd-borde),inset 0 1px 0 var(--vd-brillo)}
html.glass #loginOverlay .login-logo{width:52px;height:52px;border-radius:15px;margin:0 auto 16px;box-shadow:0 2px 8px rgba(0,0,0,.18)}
/* each step comes in with a short fade (the one shown restarts the animation when it goes from none to visible) */
html.glass #loginOverlay .login-step{animation:entPaso .34s cubic-bezier(.2,.8,.2,1)}
@keyframes entPaso{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
@media(prefers-reduced-motion:reduce){html.glass #loginOverlay .login-step{animation:none}}

html.glass #loginOverlay .login-card h3{font-size:21px;line-height:1.2;margin:0 0 6px}
html.glass #loginOverlay .login-card p.sub{font-size:14px;line-height:1.45;margin:0 0 20px}
html.glass #loginOverlay .login-card label{font-size:12.5px;font-weight:600;margin:0 0 6px 18px}
html.glass #loginOverlay .login-card label.login-lbl-next{margin-top:14px}
/* the fields, as capsules: a single line */
html.glass #loginOverlay .login-inp{height:46px;padding:0 18px;border:0;border-radius:999px;background:var(--ent-campo);box-shadow:inset 0 0 0 1px var(--ent-filo)}
html.glass #loginOverlay .login-inp::placeholder{color:var(--faint);opacity:.8}
html.glass #loginOverlay .login-inp:focus{box-shadow:inset 0 0 0 1.5px var(--olive-soft),0 0 0 4px rgba(138,169,120,.28)}
html.glass #loginOverlay .login-pass .login-inp{padding-right:50px}
html.glass #loginOverlay .login-eye{right:5px;width:38px;height:38px;border-radius:50%}
html.glass #loginOverlay .login-eye:hover{background:rgba(138,169,120,.18)}
/* the code: large and spaced out; the space after the last digit is balanced on the left */
html.glass #loginOverlay .login-inp.code{font-size:24px;letter-spacing:.4em;padding:0 0 0 .4em}
html.glass #loginOverlay .login-inp.code::placeholder{letter-spacing:.4em}
/* the three sign-in buttons, as capsules and exactly the same height: 44 px. Google and Apple in their own colours */
html.glass #loginOverlay :is(.login-btn,.login-google){height:44px;padding:0 16px;border-radius:999px;display:flex;align-items:center;justify-content:center;line-height:1}
html.glass #loginOverlay .login-btn:not(.login-apple){box-shadow:inset 0 1px 0 rgba(255,255,255,.2)}
html.glass #loginOverlay .login-google svg{margin:0 10px 0 0}
html.glass #loginOverlay .login-apple svg{margin:0 7px 2px 0}
html.glass #loginOverlay .login-btn.login-apple{margin-top:10px}
/* at night with the light theme, as with the dark one: «Entrar» in charcoal on the light olive, Google and Apple in
   their dark version */
html.glass.gl-night #loginOverlay .login-btn:not(.login-apple){color:#17191A}
html.glass.gl-night #loginOverlay .login-google{background:#131314;border-color:#8E918F;color:#E3E3E3}
html.glass.gl-night #loginOverlay .login-google:hover{background:#1C1C1E}
html.glass.gl-night #loginOverlay .login-btn.login-apple{background:#fff;color:#000;border-color:#fff}
html.glass #loginOverlay .login-or{margin:16px 0 14px;font-size:12.5px}
html.glass #loginOverlay .login-alt{font-size:13px;margin-top:16px;text-underline-offset:3px}
html.glass #loginOverlay .login-alt.login-alt2{margin-top:8px}
html.glass #loginOverlay .login-hint{margin:7px 18px 0;font-size:12.5px}
html.glass #loginOverlay .login-hint.login-privacy{margin-top:12px}   /* 2.10.22: under «Crear cuenta», not glued to it */
html.glass #loginOverlay .login-privacy .login-link{font-size:inherit}
html.glass #loginOverlay .login-footer{font-size:13.5px;margin-top:18px;padding-top:16px}
html.glass #loginOverlay .login-link{font-size:13.5px;color:var(--olive-ink)}
html.glass #loginOverlay .login-msg{font-size:13px;line-height:1.4;margin-top:10px;min-height:18px}
@media(min-width:860px){html.glass #loginOverlay .login-card{max-width:420px;padding:32px 30px 16px}}
