/* =========================================================================
   THE ENTRANCE — sign-in, sign-up, password and two-factor screens.

   One composition for every door into the product: the brand wall on the
   left, the form on the right, edge to edge. Loaded only by
   allauth/layouts/entrance.html and the client portal's sign-in, so nothing
   here can reach the application's chrome.

   The wall (rooms/door/_wall.html) is the consultancy's, on both doors: the
   consultancy's own sign-in and a room's door. It is FLAT, its colour and
   its ink come from the server as --entrance-bg / --entrance-ink
   (rooms/door/_wall_colours.html, tenants.branding.entrance_colours: the
   ink is white or dark by WCAG contrast), and everything drawn on it
   derives from the ink. No gradient, no glow, no arcs (Task 8p, Nerea,
   12-nov-2026). Nothing here hardcodes violet.

   The fields keep the markup allauth/elements/field.html renders — label,
   glyph, reveal button, errors. This file only changes how they are drawn:
   a rule under the field instead of a box around it.
   ========================================================================= */

.vs-entrance {
  --ent-rule: #e5e7eb;
  --ent-muted: #6b7280;
  /* The product's display cut. --font-display is declared in a GRC partial
     these pages do not include, so asking for it here fell back to the body
     face and the headings were never set in Space Grotesk at all. */
  --ent-display: "Space Grotesk", "Satoshi", system-ui, sans-serif;
  --ent-text: "Satoshi", system-ui, sans-serif;

  min-height: 100vh;
  display: flex;
  align-items: stretch;
  background: #fff;
}

/* ── The brand wall ─────────────────────────────────────────────────────── */

.vs-entrance__brand {
  display: none;                      /* one column until there is room */
  position: relative;
  overflow: hidden;
  flex: 0 0 56%;
  padding: clamp(40px, 5vw, 76px);
  /* The consultancy's colour, flat, and the ink the server chose for it. */
  background: var(--entrance-bg, var(--color-primary));
  color: var(--entrance-ink, #fff);
}

@media (min-width: 1024px) {
  .vs-entrance__brand {
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
}

/* The arcs: only the legacy client-portal doors (violet/portal/*) still
   draw them, until those pages go. Neither Rooms door has them. */
.vs-entrance__arcs {
  position: absolute;
  top: 50%;
  right: -26%;
  width: 122%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.11);
  pointer-events: none;
}

/* ── The legacy client portal's doors ───────────────────────────────── */

/* violet/portal/portal_login.html and portal_direct_login.html: a flat
   surface, the page's own ground, set off by a 1px rule. */
.vs-entrance--portal .vs-entrance__brand {
  background: var(--page-bg, var(--vs-surface-2));
  border-right: 1px solid var(--vs-rule);
  color: var(--vs-ink);
}
.vs-entrance--portal .vs-entrance__eyebrow { color: var(--vs-ink-3); }
.vs-entrance--portal .vs-entrance__rule { background: var(--vs-rule-2); }
.vs-entrance--portal .vs-entrance__host { color: var(--vs-ink); }

/* ── The wall of both Rooms doors (rooms/door/_wall.html) ───────────────── */

/* The greeting on the left, the picture on the right: the corridor of rooms
   on the consultancy's sign-in, the one closed door on a room's. */
.vs-entrance .vs-entrance__brandInner--door {
  max-width: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(24px, 4vw, 56px);
}

/* The greeting takes what the picture leaves, and a long name wraps rather
   than running under the picture. */
.vs-entrance__greet { flex: 1 1 auto; min-width: 0; }
.vs-entrance__greet .vs-entrance__hello {
  font-size: clamp(2.5rem, 3.6vw, 3.5rem);
  overflow-wrap: anywhere;
}

/* Whose wall: the consultancy's logo, else its initial and its name. */
.vs-entrance__hostRow {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  margin-bottom: clamp(28px, 4vw, 44px);
}
/* A logo is drawn for a white page; on a coloured wall it gets a light
   plate of its own, the way a coloured logo is set on a coloured surface. */
.vs-entrance__hostPlate {
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--vs-surface, #fff);
}
.vs-entrance__hostLogo { display: block; height: 36px; width: auto; max-width: 11rem; object-fit: contain; }
/* No logo: the initial on a tile, the wall's colours inverted. */
.vs-entrance__initial {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 10px;
  background: var(--entrance-ink, #fff);
  color: var(--entrance-bg, var(--color-primary));
  font-family: var(--ent-display);
  font-size: 1.25rem;
  font-weight: 700;
}
.vs-entrance__brand .vs-entrance__host { color: inherit; }

/* The night wall (Nerea, 12-nov-2026, option C): Violet Security's dark
   ground and concentric waves, tinted with the consultancy's colour. The
   stops and the glow come from tenants.branding.entrance_colours via
   rooms/door/_wall_colours.html, so a white-labelled consultancy gets its
   own night without configuring anything. The product owner's explicit
   choice: the one sanctioned gradient outside data and loading. Selectors
   carry .vs-entrance twice over so they also beat the portal variant. */
.vs-entrance .vs-entrance__brand.vs-entrance__brand--night {
  background:
    radial-gradient(110% 90% at 0% 50%, color-mix(in srgb, var(--entrance-glow, var(--color-primary)) 55%, transparent) 0%, transparent 60%),
    linear-gradient(150deg, var(--entrance-night-a, #2a1452) 0%, var(--entrance-night-b, #160b2e) 62%, var(--entrance-night-b, #0f0820) 100%);
  border-right: 0;
  color: var(--entrance-ink, #fff);
}
.vs-entrance .vs-entrance__brand--night[data-wall="door"] {
  background:
    radial-gradient(110% 90% at 100% 50%, color-mix(in srgb, var(--entrance-glow, var(--color-primary)) 55%, transparent) 0%, transparent 60%),
    linear-gradient(210deg, var(--entrance-night-a, #2a1452) 0%, var(--entrance-night-b, #160b2e) 62%, var(--entrance-night-b, #0f0820) 100%);
}
.vs-entrance__waves {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  color: var(--entrance-ink, #fff);
  pointer-events: none;
}
.vs-entrance .vs-entrance__brandInner--night { position: relative; z-index: 1; max-width: 36ch; }
.vs-entrance__brand--night .vs-entrance__hello { color: inherit; overflow-wrap: anywhere; }
.vs-entrance__brand--night .vs-entrance__rule { background: currentColor; opacity: 0.3; }
.vs-entrance__brand--night .vs-entrance__host { color: inherit; }
.vs-entrance__wallLabel {
  margin: 0 0 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.72;
}
.vs-entrance__tagline {
  margin: 0;
  max-width: 26ch;
  font-size: clamp(1rem, 1.3vw, 1.25rem);
  line-height: 1.45;
  opacity: 0.88;
}

.vs-entrance__brandInner {
  position: relative;
  z-index: 1;
  max-width: 34ch;
}


.vs-entrance__hello {
  font-family: var(--ent-display);
  font-weight: 700;
  font-size: clamp(2.75rem, 4.4vw, 4rem);
  line-height: 1.04;
  letter-spacing: -0.025em;
  margin: 0;
  text-wrap: balance;
}

.vs-entrance__hello span {
  display: block;
}

.vs-entrance__helloLead {
  opacity: 0.72;
  font-weight: 600;
}

/* A short rule (the legacy portal doors' wall). */
.vs-entrance__rule {
  width: 56px;
  height: 1px;
  border: 0;
  margin: clamp(30px, 3.6vw, 42px) 0 clamp(18px, 2vw, 24px);
  background: rgba(255, 255, 255, 0.3);
}


.vs-entrance__eyebrow {
  margin: 0 0 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}

.vs-entrance__host {
  margin: 0;
  font-family: var(--ent-display);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #fff;
}

/* ── The form side ──────────────────────────────────────────────────────── */

.vs-entrance__panel {
  flex: 1 1 auto;
  min-width: 0;                       /* or the column sets the page width */
  display: flex;
  flex-direction: column;
  padding: clamp(28px, 4vw, 56px) clamp(24px, 4vw, 64px);
  background: #fff;
}

.vs-entrance__col {
  width: 100%;
  max-width: min(27rem, 100%);
  margin: 0 auto;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
}

/* Which door this is, over the title (Task 8p): "Violet Rooms · Room
   management" on the consultancy's sign-in, "Violet Rooms · <client>'s room"
   on a room's door. The product speaks here, so the product lilac, never
   the consultancy's colour; sentence case, not an eyebrow. */
.vs-entrance__label {
  font-family: var(--ent-display);
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: -0.005em;
  color: var(--vr-product);
  margin: 0 0 10px;
}

/* The workspace's name, as a label over the title — not a second heading
   stranded at the top of the column with a quarter of the page underneath
   it. Small, tracked and grey, so the eye goes to the title. */
.vs-entrance__wordmark {
  font-family: var(--ent-display);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #9ca3af;
  margin: 0 0 12px;
}

/* The client portal's doors wear the WORKSPACE's white label at the top of
   the column (violet/portal/_portal_door_brand.html): its logo over its name.
   Contained, never cropped, and never taller than the title under it. */
.vs-entrance__tenant {
  margin: 0 0 4px;
}

.vs-entrance__tenantLogo {
  display: block;
  max-height: 44px;
  max-width: 180px;
  width: auto;
  height: auto;
  object-fit: contain;
  margin: 0 0 14px;
}

/* Co-branding on a room's door: the consultancy's logo, a hairline, the
   client's. Side by side, the same height, no plate behind either. */
.vs-entrance__cobrand { display: flex; align-items: center; gap: 14px; margin: 0 0 14px; }
.vs-entrance__cobrand .vs-entrance__tenantLogo { margin: 0; max-width: 150px; }
.vs-entrance__tenantName {
  font-family: var(--ent-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--vs-ink, #111827);
}
.vs-entrance__cobrandSep { width: 1px; height: 28px; background: var(--vs-rule-2); flex-shrink: 0; }

.vs-entrance__body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(32px, 6vh, 64px) 0;
}

.vs-entrance__title {
  font-family: var(--ent-display);
  font-weight: 600;
  font-size: clamp(1.875rem, 2.7vw, 2.25rem);
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: #111827;
  margin: 0;
}

.vs-entrance__sub {
  margin: 10px 0 0;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--ent-muted);
}

.vs-entrance__sub a,
.vs-entrance__foot a {
  color: var(--color-primary);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.vs-entrance__sub a:hover,
.vs-entrance__foot a:hover {
  color: color-mix(in srgb, var(--color-primary) 78%, black);
}

.vs-entrance__form {
  margin-top: clamp(26px, 4vh, 38px);
}

/* ── Single sign-on ─────────────────────────────────────────────────────── */

/* The corporate door. It sits ABOVE the password form and is drawn as the
   quieter of the two actions, not the louder: it is the shortcut for people
   the directory already knows, and the brand-filled button stays with the
   deliberate act of typing a password. */
.vs-entrance__sso {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid #e5e7eb;
  border-radius: 10px;
  background: #fff;
  /* A <button> does not inherit the page font: without this it was drawn in
     the browser's default face, heavier and wider than everything around it. */
  font-family: var(--ent-text);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.005em;
  color: #1f2937;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}
.vs-entrance__sso:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-primary) 22%, transparent);
}

.vs-entrance__sso:hover {
  border-color: var(--color-primary);
  background: color-mix(in srgb, var(--color-primary) 4%, white);
}

.vs-entrance__sso i {
  font-size: 0.875rem;
  color: var(--color-primary);
}

.vs-entrance__or {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 22px 0;
  color: #9ca3af;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.vs-entrance__or::before,
.vs-entrance__or::after {
  content: "";
  flex: 1 1 auto;
  height: 1px;
  background: var(--ent-rule);
}

/* The one paragraph a door is allowed: what happens next, when the answer
   must be the same for every address typed into the form. */
.vs-entrance__note {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.65;
  color: #4b5563;
}

.vs-entrance__foot--alt {
  margin-top: 10px;
  padding-top: 16px;
  border-top: 1px solid var(--ent-rule);
}

/* The other door, drawn as a door: a quiet outlined control, not a bare
   underlined word floating under a rule. */
.vs-entrance__portal {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 16px 9px 13px;
  border: 1px solid var(--ent-rule);
  border-radius: 999px;
  background: #fff;
  font-family: var(--ent-text);
  font-size: 0.8125rem;
  font-weight: 500;
  color: #374151 !important;
  text-decoration: none !important;
  transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}
.vs-entrance__portal i {
  font-size: 0.75rem;
  color: var(--color-primary);
}
.vs-entrance__portal i:last-child {
  font-size: 0.625rem;
  color: #9ca3af;
  transition: transform 0.18s ease, color 0.18s ease;
}
.vs-entrance__portal:hover {
  border-color: var(--color-primary);
  background: color-mix(in srgb, var(--color-primary) 4%, white);
  color: #111827 !important;
}
.vs-entrance__portal:hover i:last-child {
  transform: translateX(2px);
  color: var(--color-primary);
}

.vs-entrance__foot {
  margin: 22px 0 0;
  font-size: 0.8125rem;
  color: var(--ent-muted);
  text-align: center;
}

/* The product signs its own entrance. Sits at the foot of the form column,
   never on the wall: the wall is the workspace's half of the page. */
.vs-entrance__signature {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 0;
  font-size: 11px;
  color: #9ca3af;
}

.vs-entrance__signature img {
  width: 16px;
  height: 16px;
  object-fit: contain;
}

/* ── Fields: a rule under, not a box around ─────────────────────────────── */

.vs-entrance label {
  font-size: 11px !important;
  font-weight: 600 !important;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #6b7280 !important;
  margin-bottom: 6px !important;
}

/* The asterisk is noise where every field is required and the browser says
   so anyway. */
.vs-entrance label .text-red-500 {
  display: none;
}

.vs-entrance input[type="text"],
.vs-entrance input[type="email"],
.vs-entrance input[type="password"],
.vs-entrance input[type="tel"] {
  border: 0 !important;
  border-bottom: 1.5px solid var(--ent-rule) !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 10px 40px 10px 28px !important;
  font-size: 0.9375rem !important;
  transition: border-color 0.18s ease;
}

.vs-entrance input::placeholder {
  color: #c6c8cd !important;
}

.vs-entrance input[type="text"]:focus,
.vs-entrance input[type="email"]:focus,
.vs-entrance input[type="password"]:focus,
.vs-entrance input[type="tel"]:focus {
  border-bottom-color: var(--color-primary) !important;
  box-shadow: none !important;
  outline: none !important;
}

/* The glyph sits on the rule, not inside a box, so it loses the box's inset. */
.vs-entrance .fa-envelope,
.vs-entrance .fa-lock,
.vs-entrance .fa-user {
  margin-left: -0.25rem;
}

.vs-entrance input:-webkit-autofill,
.vs-entrance input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px #fff inset !important;
  box-shadow: 0 0 0 1000px #fff inset !important;
}

/* Remember me: a checkbox, at the size of the text it belongs to. */
.vs-entrance input[type="checkbox"] {
  width: 1rem !important;
  height: 1rem !important;
  accent-color: var(--color-primary);
}

.vs-entrance input[type="checkbox"] + label {
  font-size: 0.8125rem !important;
  font-weight: 500 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  color: #4b5563 !important;
  margin-bottom: 0 !important;
}

/* The action carries the brand and the full width of the column, and it is
   never crowded by the field above it. */
.vs-entrance__action {
  margin-top: 26px;
}

.vs-entrance__action button[type="submit"],
.vs-entrance__action a {
  border-radius: 10px !important;
  font-weight: 600 !important;
  letter-spacing: 0.01em;
}
