/* Sign-in pages (layouts/auth.blade.php), matched to the CYCA ONE DESK portal:
   a deep wine brand panel with champagne accents and Libre Baskerville headings beside a
   light form card. Loaded after app.css and laravel.css on the sign-in pages only, so the
   rest of Practice Desk is unchanged. Nothing here is smaller than 12px (CLAUDE.md rule 8). */

@font-face {
  font-family: 'Libre Baskerville';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/libre-baskerville-latin-400-normal.woff2) format('woff2');
}
@font-face {
  font-family: 'Libre Baskerville';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/libre-baskerville-latin-400-italic.woff2) format('woff2');
}

.auth2-body {
  --auth-wine: #22070F;
  --auth-wine-2: #1A050C;
  --auth-champagne: #D9BE8F;
  --auth-serif: 'Libre Baskerville', Baskerville, Georgia, 'Times New Roman', serif;
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
}

.auth2-rule {
  height: 3px;
  background: linear-gradient(90deg, var(--brand) 0%, var(--auth-champagne) 50%, var(--brand) 100%);
}

.auth2 {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  min-height: calc(100vh - 3px);
}

/* Brand panel ------------------------------------------------------------ */

.auth2-panel {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 48px;
  padding: 40px clamp(28px, 5vw, 64px);
  color: #fff;
  background:
    radial-gradient(900px 520px at 88% -12%, rgb(126 6 51 / .6), transparent 65%),
    radial-gradient(700px 420px at -8% 115%, rgb(126 6 51 / .28), transparent 60%),
    linear-gradient(180deg, var(--auth-wine) 0%, var(--auth-wine-2) 100%);
}

/* The logo's dot grid, faint, top right. */
.auth2-panel::after {
  content: "";
  position: absolute;
  top: 24px;
  right: -40px;
  width: 420px;
  height: 378px;
  background: url(../img/dot-field.svg) no-repeat center / contain;
  opacity: .1;
  -webkit-mask-image: radial-gradient(ellipse at 70% 40%, #000 25%, transparent 70%);
  mask-image: radial-gradient(ellipse at 70% 40%, #000 25%, transparent 70%);
  pointer-events: none;
}

.auth2-panel > * { position: relative; z-index: 1; }

.auth2-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.auth2-brand { display: flex; align-items: center; gap: 12px; min-width: 0; }

.auth2-logo {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
}
.auth2-logo img { width: 100%; height: 100%; object-fit: contain; padding: 2px; }

.auth2-brand-t { display: flex; flex-direction: column; gap: 3px; min-width: 0; line-height: 1.1; }
.auth2-brand-t b {
  font-family: var(--auth-serif);
  font-size: 19px;
  font-weight: 400;
  color: #fff;
}
.auth2-brand-t span {
  font-size: 12px;
  line-height: 15px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgb(255 255 255 / .6);
}

.auth2-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: none;
  padding: 8px 12px;
  border: 1px solid rgb(255 255 255 / .16);
  border-radius: 999px;
  background: rgb(255 255 255 / .05);
  color: rgb(255 255 255 / .85);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: background-color .2s ease, color .2s ease;
}
.auth2-back:hover { background: rgb(255 255 255 / .12); color: #fff; }
.auth2-back svg,
.auth2-points svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

.auth2-hero { max-width: 34rem; }

.auth2-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--auth-champagne);
}
.auth2-eyebrow span { width: 32px; height: 1px; background: rgb(217 190 143 / .6); }

.auth2-display {
  margin: 22px 0 0;
  font-family: var(--auth-serif);
  font-size: clamp(34px, 4.2vw, 52px);
  line-height: 1.14;
  letter-spacing: -.015em;
  color: #fff;
}
.auth2-display em { display: block; font-style: italic; color: var(--auth-champagne); }

.auth2-lede {
  margin: 22px 0 0;
  max-width: 30rem;
  font-size: 16px;
  line-height: 1.65;
  color: rgb(255 255 255 / .7);
}

.auth2-points { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.auth2-points li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: rgb(255 255 255 / .8);
}
.auth2-points svg { color: var(--auth-champagne); }

.auth2-legal {
  margin: 24px 0 0;
  padding-top: 20px;
  border-top: 1px solid rgb(255 255 255 / .1);
  font-size: 12px;
  line-height: 1.5;
  color: rgb(255 255 255 / .55);
}

/* Form side -------------------------------------------------------------- */

.auth2-main {
  display: grid;
  place-items: center;
  padding: 48px 24px;
}

.auth2-card {
  width: min(440px, 100%);
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 40px 36px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 1px 2px rgb(34 7 15 / .05), 0 24px 48px -28px rgb(34 7 15 / .3);
}

.auth2-kicker {
  margin: 0 0 -8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--brand);
}

.auth2-card h1 {
  margin: 0;
  font-family: var(--auth-serif);
  font-size: 30px;
  line-height: 1.2;
  font-weight: 400;
  letter-spacing: -.01em;
  color: var(--ink);
}

.auth2-card > .meta,
.auth2-card p.meta { color: var(--muted); }

.auth2-card form { display: flex; flex-direction: column; gap: 18px; }

.auth2-card .field { font-size: 13px; line-height: 16px; font-weight: 600; color: var(--ink-2); gap: 8px; }
.auth2-card .field input:not([type=checkbox]):not([type=radio]) {
  min-height: 46px;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 15px;
  background: var(--surface);
}
.auth2-card .field input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 16%, transparent);
}
.auth2-card .field .err-msg { font-size: 12px; }

/* Invitation sign-up: the invited address (fixed), name, job title and phone side by side. */
.auth2-fixed {
  display: block;
  padding: 12px 14px;
  border: 1px dashed var(--line-strong);
  border-radius: 8px;
  background: var(--surface-2);
  font-size: 15px;
  font-weight: 400;
  color: var(--ink);
  overflow-wrap: anywhere;
}
.auth2-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.auth2-card .field .opt,
.acc-pair .field .opt { font-weight: 400; color: var(--muted); font-size: 12px; }
.auth2-card .field .hint { font-size: 12px; font-weight: 400; color: var(--muted); }
@media (max-width: 480px) { .auth2-pair { grid-template-columns: 1fr; } }

.auth2-card .check { font-size: 13px; }
.auth2-card .check input { accent-color: var(--brand); width: 16px; height: 16px; }

.auth2-card .btn.primary {
  width: 100%;
  min-height: 48px;
  margin-top: 4px;
  justify-content: center;
  gap: 10px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .02em;
  transition: background-color .2s ease, border-color .2s ease;
}
.auth2-card .btn.primary::after { content: "→"; transition: transform .2s ease; }
.auth2-card .btn.primary:hover::after { transform: translateX(3px); }

.auth2-card .auth-links { padding-top: 16px; border-top: 1px solid var(--line-soft); font-size: 13px; }
.auth2-card .auth-links a { color: var(--brand); font-weight: 500; text-decoration: none; }
.auth2-card .auth-links a:hover { text-decoration: underline; text-underline-offset: 3px; }

.auth2-card .proto { margin: 0; }

.auth2 a:focus-visible,
.auth2 button:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
.auth2-panel a:focus-visible { outline-color: var(--auth-champagne); }

/* Narrow screens: the brand panel becomes a compact header above the form. */
@media (max-width: 900px) {
  .auth2 { grid-template-columns: 1fr; min-height: 0; }
  .auth2-panel { gap: 28px; padding: 24px 20px 32px; }
  .auth2-panel::after { width: 300px; height: 270px; top: 8px; right: -60px; }
  .auth2-display { margin-top: 16px; font-size: 32px; }
  .auth2-lede, .auth2-foot { display: none; }
  .auth2-main { padding: 0 16px 40px; margin-top: -1px; place-items: start center; }
  .auth2-card { margin-top: 24px; padding: 32px 22px; }
}

@media (max-width: 420px) {
  .auth2-back span { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .auth2-back, .auth2-card .btn.primary, .auth2-card .btn.primary::after { transition: none; }
}
