/* Approved access screen; unavailable providers never collect a phone number. */
.auth-entry{min-height:100svh}
.auth-entry .auth-main{width:min(100%,440px);margin:0 auto;padding:calc(34px + env(safe-area-inset-top)) 25px calc(32px + var(--app-safe-bottom))}
.auth-entry .auth-brand{margin:0 0 30px;gap:11px;font-size:31px;line-height:1;color:var(--green)}
.auth-entry .auth-brand svg{width:42px;height:42px}
.auth-entry .auth-topline{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 26px;min-width:0}
.auth-entry .auth-topline .auth-brand{margin:0;flex:none}
.auth-entry .auth-language{min-width:0;max-width:48%;flex:0 1 auto}
.auth-entry .auth-language select{max-width:100%;min-height:44px;font-size:14px}
.auth-entry .auth-language .language-picker{max-width:100%}
#auth-sms-entry > .auth-link{margin-top:14px}
.auth-entry .auth-content{margin:0;padding:0;border:0;border-radius:0;background:transparent}
.auth-entry .auth-form{gap:16px}
.auth-entry .auth-form h1{margin-bottom:4px}
.auth-entry .auth-form h2{font-size:22px;line-height:1.25;margin:0 0 4px}
.auth-entry .auth-form .input{min-height:52px;background:var(--surface);font-size:16px;border-radius:var(--ui-corner)}
.auth-entry .auth-form .primary,.auth-entry .auth-link{min-height:54px;border-radius:var(--ui-corner);font-size:16px}
.auth-entry .auth-content>.auth-link,.auth-entry .auth-pin-content>.auth-link{margin-top:14px}
.auth-entry .auth-content>p{margin:16px 0}
.auth-entry .auth-content>form[action="/logout"]{margin-top:20px}
.auth-login-page .auth-brand{margin-bottom:38px}
.auth-login-page .auth-login-title{font-size:28px;line-height:1.18;letter-spacing:-.75px;font-weight:700}
.auth-login-page .auth-content .auth-description{font-size:16px;line-height:1.5;color:var(--muted);margin:12px 0 0}
.auth-phone-entry{margin-top:28px}
.auth-phone-entry label{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:14px;font-weight:600;margin-bottom:9px}
.auth-phone-entry .input{display:block;width:100%;height:56px;border:1px solid var(--control-border);border-radius:var(--ui-corner);background:var(--surface);padding:12px 15px;font-size:19px;opacity:1}
.auth-phone-entry .input:disabled{-webkit-text-fill-color:var(--muted)}
.auth-phone-entry .input::placeholder{color:var(--muted);opacity:1}
.auth-phone-entry .primary{margin-top:14px;min-height:54px;border-radius:var(--ui-corner);font-size:16px}
.auth-phone-entry .primary:disabled{background:var(--muted);color:var(--on-accent);opacity:1}
.auth-soon{display:inline-flex;align-items:center;font-size:11px;font-weight:500;line-height:1.3;white-space:nowrap}
.auth-phone-entry label .auth-soon{padding:3px 7px;border-radius:7px;background:var(--soft);color:var(--muted)}
.auth-or{display:flex;align-items:center;gap:13px;font-size:13px;color:var(--muted);margin:20px 0}
.auth-or:before,.auth-or:after{content:"";height:1px;background:var(--line);flex:1}
.auth-vk{display:flex;align-items:center;justify-content:center;gap:10px;min-height:54px;padding:12px 15px;border-radius:var(--ui-corner);background:#286db9;color:#fff;font-size:16px;font-weight:600;opacity:1!important}
.auth-vk-mark{font-size:20px;font-weight:800;letter-spacing:-1.5px;line-height:1}
.auth-vk .auth-soon{margin-left:auto;opacity:.9}
.auth-entry .auth-content .auth-provider-note{font-size:13px;line-height:1.45;color:var(--muted);margin:12px 0 18px}
.auth-entry .auth-content form+.auth-pin-entry{margin-top:14px}
.auth-pin-entry{margin:0;scroll-margin-block:calc(12px + env(safe-area-inset-top,0px)) calc(12px + var(--app-safe-bottom))}
.auth-pin-entry summary{list-style:none;display:flex;align-items:center;justify-content:center;gap:10px;min-height:54px;padding:12px 15px;border:1px solid var(--control-border);border-radius:var(--ui-corner);background:var(--soft);color:var(--green);font-size:16px;font-weight:650;cursor:pointer}
.auth-pin-entry summary::-webkit-details-marker{display:none}
.auth-pin-entry[open]>summary svg{transform:rotate(90deg)}
.auth-pin-content{padding-top:22px}
.auth-entry .auth-content>.auth-entry-footer{display:flex;align-items:flex-start;gap:9px;margin:24px 0 0;color:var(--muted);font-size:13px;line-height:1.5}
.auth-entry-footer svg{width:18px;height:18px;flex:none;margin-top:2px}
@media(min-width:651px){.auth-entry .auth-main{padding-top:56px;padding-bottom:48px}}
@media(max-width:360px){.auth-entry .auth-main{padding-inline:20px}.auth-login-page .auth-login-title{font-size:26px}.auth-vk{gap:8px;padding-inline:12px}}
@media(max-width:430px){.auth-entry .auth-topline .auth-brand{font-size:26px;gap:8px}.auth-entry .auth-topline .brand-mark{width:36px;height:36px}}
@media(max-width:360px){.auth-entry .auth-topline{gap:8px}.auth-entry .auth-topline .auth-brand{font-size:23px;gap:7px}.auth-entry .auth-topline .brand-mark{width:32px;height:32px}.auth-entry .auth-language select{font-size:13px}}
.auth-sms-actions{display:grid;gap:8px;margin-top:14px}
.auth-sms-actions>a,.auth-sms-actions>button{display:grid;place-items:center}
.auth-phone-entry>.auth-link{margin-top:14px}
.auth-phone-entry .auth-error:not([hidden]){margin-top:8px}

.auth-entry .auth-link.primary,
.auth-entry .auth-link.primary:visited { color:var(--on-accent); }
.auth-entry .call-auth-own { display:grid; gap:2px; }
.auth-entry .call-auth-own strong { color:var(--ink); font-size:18px; font-variant-numeric:tabular-nums; }
.auth-entry .call-auth-own strong:empty { display:none; }
.auth-entry .call-auth-facts {
  display:grid;
  gap:8px;
  margin:14px 0 0;
  padding:0;
  list-style:none;
  line-height:1.4;
}
.auth-entry .call-auth-facts li { position:relative; padding-left:26px; }
.auth-entry .call-auth-facts li::before {
  content:"";
  position:absolute;
  left:4px;
  top:.28em;
  width:6px;
  height:11px;
  border:solid var(--accent);
  border-width:0 2px 2px 0;
  transform:rotate(45deg);
}
.auth-entry .call-auth-desktop { display:none; margin-top:12px; }
@media (hover:hover) and (pointer:fine) { .auth-entry .call-auth-desktop { display:block; } }
.auth-entry .auth-content > .call-auth-status {
  display:flex;
  align-items:center;
  gap:9px;
  margin:16px 0;
  padding:10px 12px;
  border:1px solid var(--line);
  border-radius:var(--ui-corner);
  background:var(--surface);
  line-height:1.4;
}
.auth-entry .call-auth-status > [role=status] { flex:1; min-width:0; }
.auth-entry .call-auth-status.is-waiting {
  background:var(--soft);
  color:var(--accent-dark);
}
.auth-entry .call-auth-status.is-waiting::before {
  content:"";
  width:8px;
  height:8px;
  flex:none;
  border-radius:50%;
  background:var(--accent);
  animation:call-auth-pulse 1.4s ease-in-out infinite;
}
@keyframes call-auth-pulse {
  0%, 100% { opacity:1; transform:scale(1); }
  50% { opacity:.35; transform:scale(.7); }
}
@media (prefers-reduced-motion:reduce) {
  .auth-entry .call-auth-status.is-waiting::before { animation:none; }
}

/* The call page as the owner drew it on 5 December 2026: own number with a link to change it, one button
   to call and one line on what to do. After the call the button gives way to a waiting box; the rest
   sits under a fold. The classes above stay for the page that waits for a confirmation on the phone. */
.auth-entry .call-auth-screen h1 { margin:0 0 18px; }
.auth-entry .call-auth-screen .call-auth-own {
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap:2px 10px;
  margin:0 0 18px;
}
.auth-entry .call-auth-own-label { flex:1 0 100%; color:var(--muted); font-size:15px; line-height:1.4; }
.auth-entry .call-auth-own:not(.is-known) .call-auth-own-label { flex:1 1 auto; }
.auth-entry .call-auth-own-label > span { display:none; }
.auth-entry .call-auth-own:not(.is-known) .call-auth-when-unknown,
.auth-entry .call-auth-screen:not(.is-waiting) .call-auth-own.is-known .call-auth-when-dial,
.auth-entry .call-auth-screen.is-waiting .call-auth-own.is-known .call-auth-when-wait { display:inline; }
.auth-entry .call-auth-screen .call-auth-own strong {
  font-size:clamp(18px, 5.4vw, 22px);
  font-weight:700;
  letter-spacing:-.3px;
  line-height:1.25;
  font-variant-numeric:tabular-nums;
  white-space:nowrap;
}
.auth-entry .call-auth-change,
.auth-entry .call-auth-change:visited {
  padding:8px 0;
  color:var(--accent);
  font-size:16px;
  font-weight:600;
  text-decoration:none;
}
.auth-entry .call-auth-screen .call-auth-dial {
  display:flex;
  align-items:center;
  justify-content:center;
  gap:14px;
  min-height:68px;
  padding:10px 18px;
  border-radius:16px;
  font-size:18px;
  font-weight:700;
  line-height:1.2;
}
.auth-entry .call-auth-dial > svg {
  width:24px;
  height:24px;
  flex:none;
  fill:none;
  stroke:currentColor;
  stroke-width:2;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.auth-entry .call-auth-dial-text { display:grid; justify-items:start; gap:2px; text-align:left; }
.auth-entry .call-auth-dial-number {
  font-size:15px;
  font-weight:500;
  font-variant-numeric:tabular-nums;
  white-space:nowrap;
  opacity:.92;
}
.auth-entry .call-auth-screen .call-auth-hint { margin:14px 0 0; font-size:15px; line-height:1.45; }
.auth-entry .call-auth-wait {
  display:none;
  align-items:center;
  gap:14px;
  padding:18px;
  border-radius:16px;
  background:#EAF1FF;
  color:var(--ink);
  font-size:18px;
  font-weight:700;
  line-height:1.3;
}
.auth-entry .call-auth-spinner {
  width:26px;
  height:26px;
  flex:none;
  border:3px solid rgba(37,99,235,.22);
  border-top-color:var(--accent);
  border-radius:50%;
  animation:call-auth-spin .9s linear infinite;
}
@keyframes call-auth-spin { to { transform:rotate(360deg); } }
.auth-entry .call-auth-screen .call-auth-note { display:none; margin:12px 0 0; font-size:15px; line-height:1.45; }
.auth-entry .call-auth-again { display:none; }
.auth-entry .call-auth-screen.is-waiting .call-auth-wait { display:flex; }
.auth-entry .call-auth-screen.is-waiting .call-auth-note { display:block; }
.auth-entry .call-auth-screen.is-waiting .call-auth-help .call-auth-again { display:flex; }
.auth-entry .call-auth-screen.is-waiting :is(.call-auth-dial, .call-auth-hint, .call-auth-desktop),
.auth-entry .call-auth-screen.is-stopped :is(.call-auth-dial, .call-auth-hint, .call-auth-desktop, .call-auth-wait, .call-auth-note, .call-auth-help) { display:none; }
.auth-entry .call-auth-stopped:not([hidden]) { display:grid; gap:12px; margin-top:4px; }
.auth-entry .call-auth-stopped .auth-error { margin:0; }
.auth-entry .call-auth-help { margin:22px 0 0; padding-top:12px; border-top:1px solid var(--line); }
.auth-entry .call-auth-help summary {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  min-height:44px;
  color:var(--ink);
  font-size:17px;
  font-weight:700;
  list-style:none;
  cursor:pointer;
}
.auth-entry .call-auth-help summary::-webkit-details-marker { display:none; }
.auth-entry .call-auth-help summary svg {
  width:22px;
  height:22px;
  flex:none;
  fill:none;
  stroke:var(--muted);
  stroke-width:2;
  stroke-linecap:round;
  stroke-linejoin:round;
  transition:transform .2s ease;
}
.auth-entry .call-auth-help[open] summary svg { transform:rotate(180deg); }
.auth-entry .call-auth-help > p { margin:4px 0 14px; font-size:15px; line-height:1.45; }
.auth-entry .call-auth-help .secondary {
  min-height:52px;
  border:1.5px solid var(--accent);
  border-radius:14px;
  background:var(--surface);
  color:var(--accent);
  font-size:16px;
  font-weight:700;
}
.auth-entry .call-auth-help .call-auth-again { margin-top:10px; }

/* The link to change the number opens a sheet on the bottom edge, or right above the keyboard of a phone. */
.auth-entry .call-auth-sheet {
  inset:auto 0 var(--call-auth-keyboard, 0px) 0;
  width:min(100%, 440px);
  max-width:none;
  max-height:calc(100dvh - var(--call-auth-keyboard, 0px) - 24px);
  margin:0 auto;
  padding:10px 20px calc(20px + var(--app-safe-bottom, 0px));
  border-radius:24px 24px 0 0;
  background:var(--surface);
  box-shadow:0 -12px 40px rgba(15,27,45,.18);
}
/* The common handle of the app's windows on a phone is replaced by the sheet's own one. */
#call-auth-sheet::before { display:none; }
.auth-entry .call-auth-sheet-grab { display:block; width:40px; height:5px; margin:0 auto 10px; border-radius:3px; background:#D0D5DD; }
.auth-entry .call-auth-sheet-head { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.auth-entry .call-auth-sheet-head h2 { margin:0; font-size:20px; letter-spacing:-.3px; }
.auth-entry .call-auth-sheet-close {
  display:grid;
  place-items:center;
  width:40px;
  height:40px;
  margin-right:-8px;
  padding:0;
  border:0;
  border-radius:50%;
  background:transparent;
  color:var(--ink);
}
.auth-entry .call-auth-sheet-close svg { width:22px; height:22px; fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round; }
.auth-entry .call-auth-sheet .auth-form { gap:14px; }
.auth-entry .call-auth-sheet .auth-form > label { color:var(--muted); font-size:14px; font-weight:500; }
.auth-entry .call-auth-sheet .auth-form > label > .input { min-height:52px; color:var(--ink); font-size:18px; }
@media (prefers-reduced-motion:reduce) {
  .auth-entry .call-auth-spinner { animation-duration:2.4s; }
  .auth-entry .call-auth-help summary svg { transition:none; }
}
