/* auth.css - the sign-in surface: /login/ and /portal/.

   These pages carry no header, no footer and no navigation, so this file does
   not extend styles.css - it stands alone and is loaded nowhere else. The
   tokens are the Veyago Workspace ones rather than the marketing site's, so
   the door looks like the room behind it. */

:root {
  --bg:      #f5f5f7;
  --surface: rgba(255, 255, 255, .85);
  --ink:     #1d1d1f;
  --muted:   #6e6e73;
  --muted-2: #86868b;
  --line:    rgba(29, 29, 31, .075);
  --blue:    #0066cc;
  --accent:  #0071e3;
  --radius:  24px;
  --font:    -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --shadow:  0 4px 18px #26334e04, 0 18px 46px #34435a04;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background:
    radial-gradient(ellipse at 88% 4%, #dceaff95, transparent 38%),
    radial-gradient(ellipse at 8% 63%, #e6eaff80, transparent 30%),
    var(--bg);
  background-attachment: fixed;
  color: var(--ink);
  font: 1rem/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
h1, h2, p { margin: 0; }

a:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; border-radius: 4px; }

/* ── The back button, the only chrome on the page ─────────────────────── */

.auth-back {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 15px 8px 11px;
  border: 1px solid #d8dee680;
  background: #ffffffb8;
  border-radius: 999px;
  box-shadow: 0 1px 3px #23365308;
  font-size: .875rem;
  font-weight: 500;
  transition: background .18s, box-shadow .18s, transform .18s;
}
.auth-back:hover { background: #fff; box-shadow: 0 4px 12px #2336530b; }
.auth-back:active { transform: scale(.985); }
.auth-back svg { width: 15px; height: 15px; flex-shrink: 0; }

/* ── The centred column ───────────────────────────────────────────────── */

.auth {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 84px 24px 56px;
}
.auth-inner { width: 100%; max-width: 760px; text-align: center; }
.auth-inner-narrow { max-width: 420px; }


.auth h1 {
  font-size: clamp(1.5rem, 1.85vw, 1.875rem);
  font-weight: 650;
  letter-spacing: -1px;
  line-height: 1.16;
}
.auth-lede {
  margin-top: 10px;
  color: var(--muted);
  font-size: .9375rem;
  letter-spacing: -.2px;
}

/* ── The choice: two halves of one panel, split by a hairline ─────────── */

.auth-choices {
  margin-top: 28px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 1px minmax(0, 1fr);
  border: 1px solid #ffffffc7;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  text-align: left;
}
.auth-rule { background: var(--line); }

.auth-choice {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 28px 26px 26px;
  transition: background .18s;
}
.auth-choice:hover { background: #ffffff9e; }
.auth-choice:focus-visible { outline-offset: -3px; border-radius: 0; }

.auth-tile {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 13px;
  margin-bottom: 17px;
  flex-shrink: 0;
}
.auth-tile svg { width: 20px; height: 20px; }
.auth-tile-studio {
  background: linear-gradient(150deg, #30333b, #111318);
  box-shadow: inset 0 1px 0 #ffffff30, 0 3px 8px #1b435014;
  color: #fff;
  font-size: 21px;
  font-weight: 500;
  letter-spacing: -2px;
  padding-right: 2px;
}
.auth-tile-client {
  background: linear-gradient(150deg, #e6e9f4, #f4f5fa);
  box-shadow: inset 0 1px 0 #fff;
  color: #68728b;
}

.auth-eyebrow {
  font-size: .75rem;
  letter-spacing: 1.2px;
  font-weight: 600;
  color: var(--blue);
  text-transform: uppercase;
}
.auth-choice h2 {
  margin-top: 9px;
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -.35px;
}
.auth-choice p {
  margin-top: 7px;
  margin-bottom: 22px;
  color: var(--muted);
  font-size: .875rem;
  line-height: 1.6;
}

/* ── The button. A span, because the whole half is the link ───────────── */

.auth-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: auto;
  padding: 9px 17px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: .875rem;
  font-weight: 500;
  line-height: 1.3;
  white-space: nowrap;
  box-shadow: 0 4px 10px #0071e319, inset 0 1px 0 #ffffff25;
  transition: background .18s;
}
.auth-choice:hover .auth-btn { background: #0077ed; }
.auth-btn svg { width: 15px; height: 15px; flex-shrink: 0; transition: transform .18s; }
.auth-choice:hover .auth-btn svg { transform: translateX(2px); }

/* ── The stub at /portal/ ─────────────────────────────────────────────── */

.auth-panel {
  padding: 30px 28px 28px;
  border: 1px solid #ffffffc7;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.auth-panel .auth-tile { margin: 0 auto 18px; }
.auth-panel .auth-btn { margin-top: 22px; }
.auth-note { margin-top: 18px; font-size: .8125rem; color: var(--muted-2); }
.auth-note a { color: var(--blue); }
.auth-note a:hover { color: #003e84; }

/* ── One column once the halves stop fitting side by side ─────────────── */

@media (max-width: 640px) {
  .auth { padding-top: 76px; }
  .auth-choices { grid-template-columns: minmax(0, 1fr); }
  .auth-rule { height: 1px; }
  .auth-choice { padding: 24px 22px 22px; }
  .auth-choice p { margin-bottom: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
