/* ==========================================================================
   Toolora auth: split-screen sign-in, centered reset and verification cards.
   Loaded after site.css, so these rules intentionally win on auth pages.
   ========================================================================== */

.auth-main {
  position: relative;
  z-index: 1;
  min-height: 100svh;
  padding: 0;
  background: #000;
}

/* ------------------------------------------------------------ split screen */

.auth-split {
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(420px, .94fr);
}

.auth-brand {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2.5rem;
  padding: clamp(1.8rem, 4vw, 3.4rem) clamp(1.6rem, 5vw, 4.6rem);
  border-right: 1px solid var(--faint);
  border-left: 0;
  background:
    radial-gradient(120% 90% at 0% 0%, rgba(255, 255, 255, .10), transparent 56%),
    radial-gradient(80% 70% at 90% 110%, rgba(255, 255, 255, .055), transparent 60%),
    #000;
}

/* The grid lives behind the content only. */
.auth-brand::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, .055) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, .055) 1px, transparent 1px);
  background-size: 54px 54px;
  -webkit-mask-image: radial-gradient(85% 80% at 20% 15%, #000 0%, rgba(0, 0, 0, .55) 55%, transparent 100%);
  mask-image: radial-gradient(85% 80% at 20% 15%, #000 0%, rgba(0, 0, 0, .55) 55%, transparent 100%);
  pointer-events: none;
}

.auth-brand::after {
  content: "";
  position: absolute;
  width: 460px;
  height: 460px;
  right: -220px;
  bottom: -240px;
  z-index: -1;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .10);
  box-shadow: 0 0 0 70px rgba(255, 255, 255, .018), 0 0 0 140px rgba(255, 255, 255, .012);
  pointer-events: none;
}

.auth-logo {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  width: fit-content;
  color: #fff;
  text-decoration: none;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -.02em;
}

.auth-logo img { height: 30px; width: auto; display: block; }
.auth-logo span { opacity: .9; }

.auth-pane-logo {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  width: fit-content;
  margin-bottom: 2rem;
  color: #fff;
  text-decoration: none;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -.02em;
}

.auth-pane-logo img { height: 28px; width: auto; display: block; }
.auth-pane-logo span { opacity: .9; }

.auth-brand-copy { max-width: 540px; }

.auth-brand-copy .eyebrow { margin-bottom: .9rem; }

.auth-brand-copy h1 {
  margin: 0 0 1.1rem;
  font-size: clamp(2.5rem, 4.4vw, 4.3rem);
  line-height: .98;
  letter-spacing: -.055em;
  font-weight: 700;
}

.auth-brand-copy p {
  margin: 0 0 1.7rem;
  max-width: 44ch;
  color: var(--dim);
  font-size: 1.02rem;
  line-height: 1.65;
}

.auth-points {
  list-style: none;
  display: grid;
  gap: .7rem;
  margin: 0;
  padding: 0;
}

.auth-points li {
  display: flex;
  align-items: center;
  gap: .7rem;
  color: #cfcfcf;
  font-size: .92rem;
}

.auth-points li::before {
  content: "";
  width: 20px;
  height: 20px;
  flex: none;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .25);
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7'/%3E%3C/svg%3E") center / 11px 11px no-repeat;
}

.auth-brand-foot {
  display: flex;
  align-items: center;
  gap: clamp(1.2rem, 3vw, 2.6rem);
  flex-wrap: wrap;
}

.auth-brand-foot div { display: flex; flex-direction: column; gap: .1rem; }
.auth-brand-foot b { font-size: 1.15rem; letter-spacing: -.03em; }
.auth-brand-foot span { color: #737373; font-size: .74rem; text-transform: uppercase; letter-spacing: .09em; }
.auth-brand-foot a { margin-left: auto; color: #8a8a8a; font-size: .8rem; text-decoration: none; }
.auth-brand-foot a:hover { color: #fff; }

/* -------------------------------------------------------------- form pane */

.auth-pane {
  display: grid;
  place-items: center;
  padding: clamp(1.5rem, 4vw, 3.5rem);
  background: #000;
}

/* No outer card: the form sits directly on the split-screen panel. */
.auth-form {
  width: min(408px, 100%);
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
}

.auth-form h1 {
  margin: 0 0 .4rem;
  font-size: clamp(1.7rem, 2.2vw, 2.05rem);
  line-height: 1.05;
  letter-spacing: -.045em;
}

.auth-form .sub {
  margin: 0 0 1.5rem;
  color: var(--dim);
  font-size: .92rem;
  line-height: 1.55;
}

/* Stacked OAuth buttons */
.oauth-stack {
  display: grid;
  gap: .55rem;
}

.oauth-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  width: 100%;
  min-height: 46px;
  padding: .68rem .9rem;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 11px;
  background: rgba(255, 255, 255, .035);
  color: #fff;
  text-decoration: none;
  font-size: .88rem;
  font-weight: 600;
  text-align: center;
  transition: background .2s, border-color .2s, transform .2s;
}

.oauth-btn:hover {
  background: rgba(255, 255, 255, .075);
  border-color: rgba(255, 255, 255, .3);
  transform: translateY(-1px);
}

.oauth-btn svg { width: 18px; height: 18px; flex: none; }

/* Brand colour lives in the icon only, so the stack stays calm and even. */
.oauth-btn.discord svg { color: #5865F2; }
.oauth-btn.github svg { color: #fff; }

.passkey-btn { margin-top: .1rem; }
.passkey-btn .ic { width: 17px; height: 17px; }

.auth-form .field { margin-bottom: .95rem; }

.auth-form .input {
  padding: .8rem .92rem;
  border-radius: 11px;
  background: rgba(255, 255, 255, .035);
}

.auth-form .input:focus {
  border-color: rgba(255, 255, 255, .55);
  background: rgba(255, 255, 255, .06);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, .05);
}

.auth-form .btn { width: 100%; }
.auth-form .btn-solid { min-height: 46px; }
.auth-form .btn[disabled] { opacity: .6; cursor: not-allowed; }

.auth-divider {
  display: flex;
  align-items: center;
  gap: .8rem;
  margin: 1.25rem 0;
  color: #6f6f6f;
  font-size: .72rem;
  letter-spacing: .08em;
}

.auth-divider::before, .auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--faint);
}

.auth-links-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: .85rem;
  flex-wrap: wrap;
  font-size: .82rem;
}

.auth-links-row a {
  color: #bdbdbd;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, .22);
}

.auth-links-row a:hover { color: #fff; border-bottom-color: #fff; }

.auth-alt {
  margin: 1.25rem 0 0;
  text-align: center;
  color: var(--dim);
  font-size: .86rem;
}

.auth-alt a {
  color: #fff;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, .35);
}

.auth-alt a:hover { border-bottom-color: #fff; }

.auth-terms {
  margin: 1rem 0 0;
  color: #6f6f6f;
  font-size: .72rem;
  line-height: 1.5;
  text-align: center;
}

.auth-terms a { color: #a8a8a8; text-decoration: underline; text-underline-offset: 2px; }

/* -------------------------------------------------------- centered cards */

.auth-simple {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.1rem;
  padding: clamp(1.4rem, 4vw, 3rem) 1.2rem;
  background:
    radial-gradient(70% 55% at 50% 0%, rgba(255, 255, 255, .075), transparent 62%),
    #000;
}

.auth-simple::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, .04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, .04) 1px, transparent 1px);
  background-size: 54px 54px;
  -webkit-mask-image: radial-gradient(60% 55% at 50% 42%, #000, transparent 100%);
  mask-image: radial-gradient(60% 55% at 50% 42%, #000, transparent 100%);
  pointer-events: none;
}

.auth-simple > * { position: relative; z-index: 1; }

.auth-simple-logo {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  color: #fff;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -.02em;
}

.auth-simple-logo img { height: 28px; width: auto; display: block; }

.auth-card-simple {
  width: min(440px, 100%);
  padding: clamp(1.6rem, 4vw, 2.4rem);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 26px;
  background: rgba(11, 11, 11, .76);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  box-shadow: 0 36px 90px rgba(0, 0, 0, .55);
  text-align: center;
}

.auth-card-simple h1 {
  margin: 0 0 .5rem;
  font-size: clamp(1.6rem, 3vw, 1.95rem);
  line-height: 1.08;
  letter-spacing: -.045em;
}

.auth-card-simple .sub {
  margin: 0 0 1.4rem;
  color: var(--dim);
  font-size: .92rem;
  line-height: 1.6;
}

.auth-card-simple .sub b { color: #fff; overflow-wrap: anywhere; }

.auth-card-simple .field { text-align: left; }

.auth-icon {
  width: 62px;
  height: 62px;
  margin: 0 auto 1.15rem;
  display: grid;
  place-items: center;
  border-radius: 19px;
  border: 1px solid rgba(255, 255, 255, .16);
  background: linear-gradient(180deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .035));
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12);
}

.auth-icon .ic { width: 26px; height: 26px; }
.auth-icon.ok { color: #86efac; border-color: rgba(34, 197, 94, .35); background: rgba(34, 197, 94, .08); }
.auth-icon.err { color: #fca5a5; border-color: rgba(239, 68, 68, .35); background: rgba(239, 68, 68, .08); }

/* E-mail pill used on reset and verification screens */
.auth-mail-pill {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  max-width: 100%;
  margin: 0 auto 1.35rem;
  padding: .5rem .85rem;
  border: 1px solid var(--faint);
  border-radius: 999px;
  background: rgba(255, 255, 255, .04);
  color: #e6e6e6;
  font-size: .82rem;
  line-height: 1.3;
}

.auth-mail-pill .ic { width: 15px; height: 15px; flex: none; color: #9a9a9a; }
.auth-mail-pill span { overflow-wrap: anywhere; }

.auth-simple-foot {
  color: #6f6f6f;
  font-size: .78rem;
  text-align: center;
  max-width: 44ch;
}

.auth-simple-foot a { color: #bdbdbd; text-decoration: underline; text-underline-offset: 2px; }

/* --------------------------------------------------------- verify details */

.verify-panel { text-align: center; }
.verify-panel h1 { margin-bottom: .45rem; }
.verify-panel .sub { margin-bottom: 1.35rem; }
.verify-panel .sub b { color: #fff; overflow-wrap: anywhere; }

.verify-code {
  text-align: center;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: .42em;
  padding-left: calc(.72rem + .42em);
  font-variant-numeric: tabular-nums;
}

.verify-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.verify-actions .btn { width: auto; }

.verify-actions a {
  color: var(--dim);
  font-size: .84rem;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, .25);
}

.verify-actions a:hover { color: #fff; border-bottom-color: #fff; }

.verify-note {
  margin: 1rem 0 0;
  color: #777;
  font-size: .76rem;
  line-height: 1.5;
}

.dev-code {
  margin: .9rem 0 0;
  padding: .6rem .75rem;
  border-radius: 9px;
  border: 1px dashed rgba(250, 204, 21, .35);
  background: rgba(250, 204, 21, .08);
  color: #fde68a;
  font-size: .8rem;
  text-align: left;
  overflow-wrap: anywhere;
}

.dev-code a { color: #fde68a; }

/* ------------------------------------------------------------- responsive */

@media (max-width: 940px) {
  .auth-split { grid-template-columns: 1fr; min-height: 100svh; }
  .auth-brand {
    min-height: auto;
    gap: 1.4rem;
    padding: 1.5rem 1.4rem 1.3rem;
    border-right: 0;
    border-left: 0;
    border-bottom: 1px solid var(--faint);
  }
  .auth-brand-copy h1 { font-size: clamp(2rem, 7vw, 3rem); margin-bottom: .65rem; }
  .auth-brand-copy p { margin-bottom: 0; font-size: .94rem; }
  .auth-points, .auth-brand-foot { display: none; }
  .auth-pane { padding: 1.4rem 1.2rem 2.4rem; align-items: start; }
  .auth-form { width: min(470px, 100%); margin: 0 auto; }
}

@media (max-width: 560px) {
  .auth-brand { padding: 1.15rem 1.1rem; }
  .auth-logo img { height: 26px; }
  .auth-brand-copy .eyebrow { display: none; }
  .auth-brand-copy h1 { font-size: 1.75rem; }
  .auth-brand-copy p { display: none; }
  .auth-pane { padding: 1.1rem .9rem 2rem; }
  .auth-card-simple { padding: 1.5rem 1.2rem; border-radius: 22px; }
  .auth-links-row { flex-direction: column; align-items: flex-start; gap: .55rem; }
  .verify-actions { flex-direction: column; align-items: stretch; }
  .verify-actions .btn { width: 100%; }
}


/* Wissel de linker- en rechterkant om */
.auth-brand {
  grid-column: 1;
  grid-row: 1;
}

.auth-pane {
  grid-column: 2;
  grid-row: 1;
}

/* Ook op mobiel eerst het brandgedeelte */
@media (max-width: 940px) {
  .auth-brand {
    grid-column: 1;
    grid-row: 1;
  }

  .auth-pane {
    grid-column: 1;
    grid-row: 2;
  }
}

