:root { font-family: Inter, "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: #10233c; background: #f4f7fb; font-synthesis: none; }
* { box-sizing: border-box; }
body { min-width: 320px; min-height: 100vh; margin: 0; background: #f4f7fb; }
button, input { font: inherit; }
.auth-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(380px, .88fr) minmax(480px, 1.12fr); }
.auth-brand-panel { min-height: 100vh; padding: 48px clamp(38px, 6vw, 90px); display: flex; flex-direction: column; color: #fff; background: radial-gradient(circle at 82% 18%, rgba(22,139,238,.44), transparent 25rem), linear-gradient(145deg,#051724 0%,#082b43 64%,#0b3854 100%); }
.auth-brand { display: flex; align-items: center; gap: 14px; }
.auth-brand img { width: 48px; height: 48px; object-fit: contain; }
.auth-brand strong { font-size: 25px; line-height: 1; letter-spacing: -.04em; }
.auth-brand strong span { color: #62b9ff; }
.auth-brand-copy { max-width: 580px; margin: auto 0; }
.auth-brand-copy small,.auth-card-heading > span { display: block; color: #75c4ff; font-size: 11px; font-weight: 800; letter-spacing: .14em; }
.auth-brand-copy h1 { max-width: 540px; margin: 18px 0; font-size: clamp(36px,4.2vw,62px); line-height: 1.07; letter-spacing: -.055em; }
.auth-brand-copy p { max-width: 500px; margin: 0; color: #b7ccdc; font-size: 16px; line-height: 1.7; }
.auth-trust { display: flex; align-items: center; gap: 9px; color: #9bb4c7; font-size: 12px; }
.auth-trust span { width: 8px; height: 8px; border-radius: 50%; background: #39d49d; box-shadow: 0 0 0 4px rgba(57,212,157,.12); }
.auth-form-panel { min-height: 100vh; padding: 36px; display: grid; place-items: center; align-content: center; }
.auth-card { width: min(100%,460px); padding: 42px; border: 1px solid #e0e7ef; border-radius: 20px; background: #fff; box-shadow: 0 24px 65px rgba(16,35,60,.1); }
.auth-card-heading h2 { margin: 10px 0 7px; font-size: 31px; letter-spacing: -.045em; }
.auth-card-heading p { margin: 0 0 27px; color: #718096; font-size: 14px; line-height: 1.55; }
.auth-alert { margin: 0 0 18px; padding: 11px 13px; border-radius: 9px; color: #785718; background: #fff5da; font-size: 12px; line-height: 1.45; }
.auth-alert.error { color: #a13b45; background: #fff0f1; }
.auth-alert.success { color: #11724e; background: #e8f8f1; }
.auth-form { display: grid; gap: 17px; }
.auth-form label > span { display: block; margin-bottom: 7px; color: #36475e; font-size: 12px; font-weight: 700; }
.auth-form input { width: 100%; height: 48px; padding: 0 14px; color: #10233c; border: 1px solid #d7e0e9; border-radius: 10px; outline: none; background: #fbfcfe; }
.auth-form input:focus { border-color: #168bee; box-shadow: 0 0 0 4px rgba(22,139,238,.11); background: #fff; }
.auth-form-meta { margin-top: -5px; display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; justify-content: space-between; }
.auth-form .auth-remember { display: inline-flex; gap: 8px; align-items: center; cursor: pointer; }
.auth-form .auth-remember > span { margin: 0; color: #36475e; font-size: 13px; font-weight: 600; }
.auth-form .auth-remember input { width: 18px; height: 18px; padding: 0; accent-color: #0d76c8; box-shadow: none; }
.auth-remember-hint { margin: -12px 0 0; color: #6b7a8c; font-size: 12px; }
.auth-form a { color: #0d76c8; font-size: 12px; font-weight: 700; text-decoration: none; }
.auth-form button { height: 49px; margin-top: 2px; border: 0; border-radius: 10px; color: #fff; background: linear-gradient(135deg,#168bee,#0d76c8); box-shadow: 0 10px 22px rgba(22,139,238,.24); font-weight: 800; cursor: pointer; }
.auth-form button:hover { filter: brightness(.97); transform: translateY(-1px); }
.auth-secondary { display: grid; gap: 12px; margin-top: 18px; }
.auth-divider { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; color: #7b8aa0; font-size: 11px; font-weight: 700; }
.auth-divider::before,.auth-divider::after { content: ''; height: 1px; background: #e5ebf3; }
.auth-create-link,.auth-google-link { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; border-radius: 10px; font-size: 13px; font-weight: 800; text-decoration: none; }
.auth-create-link { border: 1px solid #cfdceb; color: #194672; background: #fff; }
.auth-create-link:hover { background: #f6f9fd; }
.auth-google-link { border: 1px solid #d7e0e9; color: #10233c; background: #fff; box-shadow: 0 1px 2px #10233c0a; }
.auth-google-link span { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: #ea4335; font-size: 13px; font-weight: 900; }
.auth-google-link:hover { border-color: #b9c8d9; background: #fbfcfe; }
.auth-muted-note { margin: 0; padding: 10px 12px; border-radius: 10px; color: #66768c; background: #f4f7fb; font-size: 12px; line-height: 1.45; text-align: center; }
.auth-back { text-align: center; }
.auth-footer { margin: 22px 0 0; color: #8a97a8; font-size: 11px; }
@media (max-width: 820px) { .auth-shell { grid-template-columns: 1fr; } .auth-brand-panel { min-height: auto; padding: 24px; } .auth-brand-copy,.auth-trust { display: none; } .auth-form-panel { min-height: calc(100vh - 96px); padding: 24px; } }
@media (max-width: 480px) { .auth-card { padding: 30px 22px; border-radius: 15px; } .auth-card-heading h2 { font-size: 27px; } }


/* Login-only presentation (sign-in, sign-up, mobile code, invites): a deep navy brand half beside a clean white
   form half (owner, 15 Oct). Password recovery keeps the existing layout. */
.auth-login { background: #fff; }
.auth-login .auth-shell { width: 100%; min-height: 100dvh; margin: 0; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 0; align-items: stretch; padding: 0; }
.auth-login .auth-brand-panel { position: relative; isolation: isolate; overflow: hidden; min-height: 100dvh; padding: clamp(28px, 5vh, 56px) clamp(32px, 5vw, 84px); justify-content: space-between; color: #fff;
  background: radial-gradient(circle at 88% 8%, #3b82f666, transparent 28rem), radial-gradient(circle at 6% 96%, #22d3ee2e, transparent 24rem), linear-gradient(155deg, #061330 0%, #0b1f4b 48%, #1b3c8f 100%); }
/* A faint grid on the navy, fading out towards the bottom. */
.auth-login .auth-brand-panel::after { content: ''; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(#ffffff0b 1px, transparent 1px), linear-gradient(90deg, #ffffff0b 1px, transparent 1px); background-size: 44px 44px; mask-image: linear-gradient(180deg, #000 0%, transparent 85%); }
.auth-login .auth-brand { gap: 10px; }
.auth-login .auth-brand img { width: 40px; height: 40px; }
.auth-login .auth-brand strong { font-size: 26px; }
.auth-login .auth-brand strong span { color: #7cc4ff; }
.auth-login .auth-brand img { filter: drop-shadow(0 4px 10px #0006); }
.auth-login-story { margin: clamp(18px, 4.5vh, 46px) 0 clamp(12px, 2.5vh, 24px); }
.auth-story-eyebrow { display: inline-block; padding: 7px 12px; border: 1px solid #ffffff2e; border-radius: 999px; color: #cfe3ff; background: #ffffff12; font-size: 10px; font-weight: 800; letter-spacing: .12em; backdrop-filter: blur(4px); }
.auth-login-story h1 { margin: clamp(12px, 2vh, 18px) 0 clamp(10px, 1.8vh, 16px); color: #fff; font-size: clamp(32px, 3.4vw, 49px); line-height: 1.12; letter-spacing: -.047em; font-weight: 750; }
.auth-login-story > p { max-width: 495px; margin: 0; color: #c3d3ec; font-size: 15px; line-height: 1.75; }
.auth-workspace-art { position: relative; margin: clamp(10px, 2vh, 20px) -12px 4px; }
.auth-workspace-art img { display: block; width: auto; height: auto; max-width: min(100%, 680px); max-height: 36vh; filter: drop-shadow(0 28px 50px #02081cb0); }
.auth-story-features { display: flex; flex-wrap: wrap; gap: 10px 19px; margin: 0; padding: 0; list-style: none; color: #dbe7fb; font-size: 12px; }
.auth-story-features li { display: flex; align-items: center; gap: 7px; }
.auth-story-features li::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #60a5fa; box-shadow: 0 0 0 3px #60a5fa33; }
.auth-login .auth-trust { color: #a9bddb; font-size: 11px; line-height: 1.6; }
.auth-login .auth-trust span { flex-shrink: 0; background: #34d399; box-shadow: 0 0 0 4px #34d39926; }
/* The white half: the form sits straight on the page, no floating card. */
.auth-login .auth-form-panel { min-height: 100dvh; padding: clamp(24px, 4vh, 48px) clamp(24px, 5vw, 72px); background: #fff; }
.auth-login .auth-card { position: relative; width: min(100%, 440px); padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; }
.auth-login .auth-card::before { content: ''; display: block; width: 40px; height: 4px; margin-bottom: clamp(14px, 2.4vh, 22px); border-radius: 4px; background: linear-gradient(90deg, #1d4ed8, #38bdf8); }
.auth-login .auth-card-heading > span { color: #1d4ed8; font-size: 10px; }
.auth-login .auth-card-heading h2 { margin-top: 10px; font-size: 32px; color: #0b1f4b; }
.auth-login .auth-card-heading p { color: #607089; margin-bottom: clamp(16px, 3vh, 28px); }
.auth-login .auth-form { gap: clamp(12px, 1.9vh, 18px); }
.auth-login .auth-form label > span { color: #384d69; font-size: 12px; }
.auth-login .auth-form input { height: 46px; border-color: #d6e1ed; border-radius: 11px; background: #ffffffd9; box-shadow: inset 0 1px 2px #142a4604; transition: border-color .15s, box-shadow .15s; }
.auth-login .auth-form input:focus { border-color: #1d4ed8; box-shadow: 0 0 0 3px #1d4ed820; }
/* Tick boxes are not text fields: no field frame, height or shadow around them. */
.auth-login .auth-form input[type=checkbox] { width: 18px; height: 18px; margin: 0; padding: 0; flex: none; border: 0; border-radius: 4px; background: none; box-shadow: none; accent-color: #1d4ed8; }
.auth-login .auth-form input[type=checkbox]:focus { box-shadow: none; }
.auth-login .auth-form .auth-check input[type=checkbox] { margin-top: 2px; }
.auth-login .auth-form a { color: #245cb4; }
.auth-login .auth-form a:hover { text-decoration: underline; }
.auth-login .auth-form button { height: 48px; margin-top: 2px; background: linear-gradient(115deg, #1d4ed8, #0b1f4b); box-shadow: inset 0 1px 0 #ffffff26, 0 10px 22px -6px #0b1f4b66; font-size: 14px; transition: box-shadow .15s, filter .15s; }
.auth-login .auth-form button:hover { transform: none; filter: brightness(1.08); box-shadow: inset 0 1px 0 #ffffff26, 0 12px 26px -6px #0b1f4b80; }
.auth-login a:focus-visible, .auth-login button:focus-visible { outline: 3px solid #1d4ed8; outline-offset: 4px; }
.auth-login .auth-footer { margin-top: 22px; color: #8a97a8; font-size: 11px; }
.auth-form .auth-check { display: flex; gap: 10px; align-items: flex-start; }
.auth-form .auth-check input[type=checkbox] { width: 18px; height: 18px; margin: 2px 0 0; flex: none; }
.auth-form .auth-check span { margin: 0; font-weight: 500; line-height: 1.5; }
.auth-switch { margin: 0; color: #607089; font-size: 13px; text-align: center; }
.auth-switch a { color: #245cb4; font-weight: 800; text-decoration: none; }
.auth-switch a:hover { text-decoration: underline; }
/* A form button that reads as a link (mobile sign-in: "Send it again"; sign-up: "Send code"). */
.auth-link-button { padding: 0; border: 0; background: none; color: #245cb4; font-weight: 800; cursor: pointer; }
.auth-link-button:hover { text-decoration: underline; }
.auth-link-button:disabled { color: #8a97a8; cursor: default; text-decoration: none; }
/* Sign-up phone + "Send code" side by side: an outlined button as tall as the field, not the big blue submit. */
.auth-form label > .auth-code-row { display: flex; gap: 8px; align-items: stretch; margin: 0; }
.auth-code-row input { flex: 1; min-width: 0; }
.auth-form .auth-code-row .auth-link-button, .auth-login .auth-form .auth-code-row .auth-link-button { flex: none; height: auto; margin: 0; padding: 0 16px; border: 1px solid #c9d7e8; border-radius: 11px; background: #fff; box-shadow: none; color: #245cb4; font-size: 13px; font-weight: 800; white-space: nowrap; text-decoration: none; transform: none; filter: none; }
.auth-form .auth-code-row .auth-link-button:hover { border-color: #9fb6d3; background: #f7faff; }
.auth-form .auth-code-row .auth-link-button:disabled { color: #8a97a8; background: #f4f6f9; }
.auth-code-hint { margin: -8px 0 0; color: #6b7a8c; font-size: 12px; }
@media (max-height: 720px) and (min-width: 821px) { .auth-workspace-art { display: none; } .auth-story-features { margin-top: 20px; } }
/* Short laptop screens and phones: drop decoration so the form fits without scrolling. */
@media (max-height: 820px), (max-width: 820px) {
  .auth-login .auth-shell { padding-block: 14px; }
  .auth-login .auth-card { padding-top: 22px; padding-bottom: 20px; }
  .auth-login .auth-card::before, .auth-login .auth-card-heading > span, .auth-login .auth-footer { display: none; }
  .auth-login .auth-card-heading h2 { margin-top: 0; }
  .auth-login .auth-card-heading p { margin-bottom: 14px; }
  .auth-login .auth-form { gap: 10px; }
  .auth-login .auth-form label > span { margin-bottom: 5px; }
  .auth-login .auth-form input { height: 42px; }
}
@media (max-width: 820px) {
  .auth-login .auth-shell { grid-template-columns: minmax(0, 1fr); gap: 0; padding: 0; align-content: start; }
  .auth-login .auth-brand-panel { width: 100%; min-height: 0; margin: 0; padding: 18px 20px; }
  .auth-login .auth-form-panel { min-height: 0; align-content: start; }
  .auth-login-story { display: none; }
  .auth-login-story h1 { margin: 14px 0 10px; font-size: 28px; line-height: 1.18; }
  .auth-login-story h1 br { display: none; }
  .auth-login-story > p { font-size: 13px; line-height: 1.65; }
  .auth-workspace-art, .auth-story-features { display: none; }
  .auth-login .auth-form-panel { padding: 26px 20px 32px; }
  .auth-login .auth-card { padding: 0; margin: 0 auto; }
  .auth-login .auth-card::before { margin-bottom: 20px; }
  .auth-login .auth-card-heading h2 { font-size: 28px; }
}
@media (max-width: 480px) {
  .auth-login .auth-form-panel { padding: 22px 16px 28px; }
  .auth-login .auth-card-heading p { margin-bottom: 18px; }
}
@media (prefers-reduced-motion: reduce) { .auth-login .auth-form input, .auth-login .auth-form button { transition: none; } }
/* Other ways in (_social-buttons.blade.php): equal logo tiles in one row under "or sign in with". */
.auth-alt-grid { display: grid; grid-template-columns: repeat(var(--tiles, 3), minmax(0, 1fr)); gap: 8px; }
.auth-alt-tile { min-height: 64px; display: grid; justify-items: center; align-content: center; gap: 6px; padding: 8px 4px; border: 1px solid #dbe3ec; border-radius: 12px; background: #fff; color: #10233c; font-size: 12px; font-weight: 700; text-decoration: none; transition: border-color .15s, background .15s, box-shadow .15s; }
.auth-alt-tile svg { width: 22px; height: 22px; }
button.auth-alt-tile { font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; }
.auth-alt-tile[hidden] { display: none; }
.auth-alt-tile:hover { border-color: #9fb6d3; background: #f7faff; box-shadow: 0 4px 12px -6px #24437740; }
.auth-alt-tile span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.auth-login .auth-divider span { text-transform: uppercase; letter-spacing: .06em; }
@media (max-width: 480px) { .auth-alt-grid { gap: 6px; } .auth-alt-tile { min-height: 58px; padding: 7px 2px; font-size: 11px; gap: 5px; } .auth-alt-tile svg { width: 20px; height: 20px; } }
@media (prefers-reduced-motion: reduce) { .auth-alt-tile { transition: none; } }
