/* Shura's sign-in, in Bespar Label's look (bespar-label services/bespar/web/src/styles.css, «sign in»): the sign-in
   at the reading start, the logo's rain on the other side (rain.js), under the company site's starry navy sky. The
   logo's navy in both themes, so the tokens the form reads are set here, on the sky. */
* { box-sizing: border-box; }
html, body { margin: 0; background: #0E1D36; }
body { font: 400 14px/1.6 Vazirmatn, Tahoma, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }

.auth {
  --panel: rgba(10, 22, 41, 0.78); --field: rgba(6, 14, 28, 0.72);
  --line: rgba(239, 230, 210, 0.14); --line-2: rgba(239, 230, 210, 0.24);
  --text: #EFE6D2; --text-2: #d8cfbd; --muted: #a9b4c7; --faint: #8390a6;
  --accent: #f5a524; --accent-text: #0E1D36; --accent-soft: rgba(245, 165, 36, 0.16);
  --bad: #f08c8c; --bad-soft: rgba(240, 140, 140, 0.14);
  --brand-tile: #EFE6D2; --brand-on-tile: #0E1D36; --brand-word: #EFE6D2;
  --shadow: 0 18px 44px rgba(0, 0, 0, 0.45);
  color-scheme: dark; color: var(--text);
  position: relative; isolation: isolate; overflow: hidden; min-height: 100vh;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center;
  gap: clamp(16px, 4vw, 56px); padding: 24px clamp(16px, 5vw, 72px);
  background: radial-gradient(130% 115% at 50% 42%, transparent 50%, rgba(0, 0, 0, 0.34) 100%), linear-gradient(180deg, #13264A 0%, #0A1629 100%);
}
.auth-sky { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; display: block; pointer-events: none; }
/* fa / EN at the top corner, on the sky; the same switch as the platform's bar (_lang_switch.html) */
.auth-lang { position: absolute; top: 16px; inset-inline-end: clamp(16px, 5vw, 72px); z-index: 2; }
.sh-seg { display: inline-flex; align-items: center; gap: 2px; padding: 2px; margin: 0; border: 1px solid var(--line-2); border-radius: 8px; background: var(--panel); }
.sh-seg button { height: 28px; min-width: 34px; padding: 0 9px; border: 0; border-radius: 6px; background: transparent; color: var(--muted); cursor: pointer; font: 600 12.5px/1 Vazirmatn, Tahoma, sans-serif; }
.sh-seg button:hover { color: var(--text); background: rgba(239, 230, 210, 0.08); }
.sh-seg button[aria-pressed="true"] { background: var(--accent-soft); color: var(--accent); }
.sh-seg button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.auth-side { display: flex; justify-content: center; min-width: 0; }
.auth-rain { align-self: stretch; min-height: min(78vh, 680px); }
@media (max-width: 820px) {
  .auth { grid-template-columns: minmax(0, 1fr); align-content: start; gap: 8px; padding-top: 56px; }
  .auth-rain { order: -1; min-height: 0; height: 30vh; }
}
.auth-card {
  width: min(420px, 100%); background: var(--panel); border: 1px solid var(--line); border-radius: 12px;
  padding: 32px 28px; display: flex; flex-direction: column; gap: 16px; box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
}
.auth-card h1 { margin: 0; font-size: 22px; font-weight: 700; }

/* the brand: the icon, and «بسپار» on its left; under it what Shura does */
.auth-brand { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.brand-lockup { display: inline-flex; align-items: center; gap: 18px; color: var(--brand-word); direction: rtl; }
.brand-icon, .brand-word { display: block; flex: 0 0 auto; }
.bp-tile { fill: var(--brand-tile); }
.bp-mark { fill: var(--brand-on-tile); }
.bp-accent { fill: #FF5A36; }
.brand-sub { font-size: 12px; color: var(--muted); line-height: 1.5; }

/* the form, as Label's: the button keeps its own width, at the reading start */
.col { display: flex; flex-direction: column; gap: 12px; }
.col > .btn { align-self: flex-start; }
label.field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--text-2); font-weight: 500; min-width: 0; }
.input {
  width: 100%; height: 36px; padding: 0 12px; border-radius: 8px; font: inherit; font-weight: 400;
  border: 1px solid var(--line-2); background: var(--field); color: var(--text); outline: none;
  transition: border-color 0.12s, box-shadow 0.12s; direction: ltr; text-align: left; unicode-bidi: plaintext;
}
.input:hover { border-color: var(--muted); }
.input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; height: 44px; padding: 0 20px;
  border-radius: 8px; border: 1px solid var(--accent); background: var(--accent); color: var(--accent-text);
  font: 600 15px/1 Vazirmatn, Tahoma, sans-serif; cursor: pointer; transition: background-color 0.12s;
}
.btn:hover { background: color-mix(in srgb, var(--accent) 88%, var(--text)); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible, .input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.banner { padding: 10px 12px; border-radius: 8px; font-size: 13px; line-height: 1.7; }
.banner.bad { background: var(--bad-soft); color: var(--bad); border: 1px solid color-mix(in srgb, var(--bad) 40%, transparent); }
.banner.info { background: rgba(239, 230, 210, 0.06); color: var(--text-2); border: 1px solid var(--line); }
.banner code { font-family: ui-monospace, Consolas, monospace; font-size: 12px; direction: ltr; unicode-bidi: isolate; color: var(--text); }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
