/*
  File role: the look of the application sign-in page (/app/login/).

  A clone of root/e-reg/login/ereg-login.css (D-290): the same card on the same
  navy page, with the same VOGO scene on the right (index.php sets --ereg-scene
  to img/eRegistratura.webp, a copy next to this page; 09.10.2026). The class names are the clone's own (body.vogo-ereg),
  kept so a fix can be copied between the two doors line for line.

  @file_version 1.0.5
*/

/* The client's logo from the deployment profile, above the title. */
body.vogo-ereg .vogo-client-logo {
  display: block;
  max-height: 48px;
  max-width: 200px;
  margin: 0 0 14px;
}

/* ---- Palette, read off the photograph itself ---- */
body.vogo-ereg {
  --ereg-abyss:  #030b1c;   /* the darkest corner of the scene */
  --ereg-navy:   #0a1f3d;   /* the depth the card sits against */
  --ereg-ember:  #E4812F;   /* the light trails; the only accent */
  --ereg-card:   #ffffff;
  --ereg-ink:    #0d1526;
  --ereg-steel:  rgba(255,255,255,.74);
}

/* One accent, not two. register.css keeps its colours in tokens - the green of
   the standard door - so recolouring means redefining the tokens, not hunting
   the rules that draw the button, the field icons and the focus ring. */
:root {
  --btn: #E4812F;
  --btn-hover: #cf7120;
  --btn-shadow: rgba(228,129,47,.30);

  --brand: #E4812F;
  --brand-tint: #fdf1e6;
  --brand-glow: rgba(228,129,47,.16);

  --link: #b9651d;
  --link-hover: #9a5416;
}

/* ---- The page is the photograph ----
   The veil is a left-to-right gradient: near-solid navy where the card stands,
   clear where the devices are, so the scene stays readable behind the form. */
body.login.vogo-ereg {
  background:
    linear-gradient(100deg,
      rgba(3,11,28,.97) 0%,
      rgba(3,11,28,.93) 26%,
      rgba(6,20,44,.62) 48%,
      rgba(6,20,44,.28) 68%,
      rgba(6,20,44,.12) 100%),
    var(--ereg-scene) right center / cover no-repeat,
    var(--ereg-abyss) !important;
  min-height: 100vh;
}

/* ---- One column: the grid of two disappears with the aside ---- */
body.vogo-ereg .vogo-shell {
  display: block;
  width: 100%;
  min-height: 100vh;
}

body.vogo-ereg .vogo-form-col {
  background: transparent;
  align-items: center;
  justify-content: flex-start;
  padding: 48px clamp(20px, 7vw, 120px);
  min-height: 100vh;
  /* The padding inside the 100vh (11.10.2026): without it the column was 96px taller than the window, so the page
     scrolled and the card, centred in the taller column, sat low. */
  box-sizing: border-box;
}

/* ---- The card ---- */
body.vogo-ereg .vogo-form-inner {
  width: 100%;
  max-width: 408px;
  background: var(--ereg-card);
  border-radius: 18px;
  padding: 34px 32px 28px;
  box-shadow: 0 34px 80px -28px rgba(0,0,0,.72), 0 2px 0 rgba(255,255,255,.06);
}

body.vogo-ereg .vogo-title {
  font-size: 26px;
  line-height: 1.15;
  letter-spacing: -.015em;
  color: var(--ereg-ink);
  text-align: left;
  margin: 0 0 6px;
}
body.vogo-ereg .vogo-title-sup { color: var(--ereg-ember); }

/* The tenant's name in place of a logo (account creation page, 12.10.2026). */
body.vogo-ereg .vogo-brand-name {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.01em;
  color: var(--ereg-ink);
  margin: 0 0 14px;
}

body.vogo-ereg .vogo-subtitle {
  font-size: 14px;
  line-height: 1.55;
  text-align: left;
  margin: 0 0 24px;
  max-width: 34ch;
}

/* The access code sits where the emailed one would: right above the button, so
   the order on screen matches the order of the checks. */
body.vogo-ereg #loginform label[for="vogo_code"] { display: block; }

/* wp-login.php's own stylesheet draws a bordered white panel around the form.
   Inside a card that is already white, it reads as a frame within a frame, and
   its padding is what left the empty band under the button. */
body.vogo-ereg #loginform {
  border: 0;
  background: transparent;
  padding: 0;
  margin: 26px 0 0;
  box-shadow: none;
  /* The floating label of the first field rises 10px above the field. With the
     panel's padding gone, wp-login's overflow:hidden would cut it in half. */
  overflow: visible;
}

/* ---- The trademark block sits inside the card, so it is dark on white and
        stays a footnote: a hairline above it, no second frame. ---- */
body.vogo-ereg .vogo-euipo-card {
  margin-top: 22px;
  padding: 14px 0 0;
  background: transparent;
  border: 0;
  border-top: 1px solid #e8ebf0;
  border-radius: 0;
}
body.vogo-ereg .vogo-euipo-card img {
  max-width: 116px;
  opacity: .9;
}
body.vogo-ereg .vogo-euipo-note {
  color: #6b7280;
  font-size: 11px;
  line-height: 1.45;
  margin-top: 5px;
}

/* ---- Phones: the scene keeps working as a background, with a heavier veil so
        the card never sits on a bright part of the image. ---- */
@media (max-width: 980px) {
  body.login.vogo-ereg {
    background:
      linear-gradient(180deg,
        rgba(3,11,28,.86) 0%,
        rgba(3,11,28,.93) 55%,
        rgba(3,11,28,.97) 100%),
      var(--ereg-scene) center center / cover no-repeat,
      var(--ereg-abyss) !important;
  }
  body.vogo-ereg .vogo-form-col {
    justify-content: center;
    padding: 32px 20px 28px;
  }
  body.vogo-ereg .vogo-form-inner { max-width: 440px; }
}

@media (max-width: 480px) {
  body.vogo-ereg .vogo-form-inner { padding: 26px 20px 22px; border-radius: 16px; }
  body.vogo-ereg .vogo-title { font-size: 22px; }
}

/* ---- The way out of the door (22.09.2026) ----
   Two quiet links under the card: the site, and the page this door belongs to. */
body.vogo-ereg .vogo-ereg-back {
  display: flex;
  gap: 18px;
  margin: 16px 0 0;
  font-size: .88rem;
}
body.vogo-ereg .vogo-ereg-back a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #6b7280;
  text-decoration: none;
}
body.vogo-ereg .vogo-ereg-back a:hover { color: var(--btn); text-decoration: underline; }
body.vogo-ereg .vogo-ereg-back i { font-size: .95rem; }

/* ---- The candidate's sign-up page: the hero of /ro/aiao/, verbatim (user, 11.10.2026: "fix aceeași poză și stil") ----
   The image and both gradients are copied from ro/aiao/aiao.css (body.aiao-pg .ai-hero and its phone rule);
   #001120 is --ai-abyss there. Change them there and here together. */
body.login.vogo-ereg.vogo-scene-aiao {
  background:
    linear-gradient(100deg, rgba(0,17,32,.97) 0%, rgba(0,17,32,.93) 34%, rgba(4,32,60,.72) 62%, rgba(4,32,60,.52) 100%),
    url('/ro/aiao/img/designer-proces.webp') right center / cover no-repeat,
    #001120 !important;
}
@media (max-width: 720px) {
  body.login.vogo-ereg.vogo-scene-aiao {
    background:
      linear-gradient(180deg, rgba(0,17,32,.9) 0%, rgba(0,17,32,.95) 100%),
      url('/ro/aiao/img/designer-proces.webp') center center / cover no-repeat,
      #001120 !important;
  }
}


/* ---- "Creați cont nou": the three kinds of account (12.10.2026) ----
   One quiet link beside "Ați uitat parola?" opens a card with the three kinds; a kind this organisation does not
   offer stays visible, greyed, with the reason. Colours from the page's tokens (--btn, --brand-tint, --ereg-ink). */
body.vogo-ereg .vogo-forgot-link { justify-content: space-between; align-items: center; }
body.vogo-ereg .vogo-signup-open {
  border: 0; background: transparent; padding: 0; font: inherit; color: var(--btn); font-weight: 600; cursor: pointer;
}
body.vogo-ereg .vogo-signup-open:hover { text-decoration: underline; }

body.vogo-ereg .vogo-signup { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center;
  justify-content: center; padding: 20px; }
body.vogo-ereg .vogo-signup[hidden] { display: none; }
body.vogo-ereg .vogo-signup__backdrop { position: absolute; inset: 0; background: rgba(3, 11, 28, .62); backdrop-filter: blur(3px); }
body.vogo-ereg .vogo-signup__card { position: relative; width: min(560px, 100%); background: #fff; border-radius: 7px;
  box-shadow: 0 30px 70px -20px rgba(0, 0, 0, .55); animation: vogo-signup-pop .16s ease-out; }
@keyframes vogo-signup-pop { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }
body.vogo-ereg .vogo-signup__head { display: flex; align-items: center; padding: 18px 20px; border-bottom: 1px solid #e5e7eb; }
body.vogo-ereg .vogo-signup__head h2 { margin: 0; font-size: 18px; color: var(--ereg-ink); }
/* The close X sits in the head's top-right corner (code-writing rule 13). */
body.vogo-ereg .vogo-signup__x { margin-left: auto; border: 0; background: transparent; color: #6b7280; cursor: pointer;
  padding: 6px; border-radius: 7px; display: flex; }
body.vogo-ereg .vogo-signup__x:hover { background: #f3f4f6; color: var(--ereg-ink); }
body.vogo-ereg .vogo-signup__list { display: flex; flex-direction: column; gap: 10px; padding: 18px 20px 20px; }
body.vogo-ereg .vogo-signup__opt { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid #e5e7eb;
  border-radius: 7px; text-decoration: none; color: var(--ereg-ink); transition: border-color .15s, background .15s; }
body.vogo-ereg a.vogo-signup__opt:hover, body.vogo-ereg a.vogo-signup__opt:focus-visible { border-color: var(--btn);
  background: var(--brand-tint); outline: 0; }
body.vogo-ereg .vogo-signup__icon { flex: none; width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center;
  justify-content: center; background: var(--brand-tint); color: var(--btn); font-size: 18px; }
body.vogo-ereg .vogo-signup__text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
body.vogo-ereg .vogo-signup__text strong { font-size: 14.5px; line-height: 1.35; }
body.vogo-ereg .vogo-signup__text span { font-size: 13px; color: #6b7280; line-height: 1.45; }
body.vogo-ereg .vogo-signup__go { margin-left: auto; color: var(--btn); }
body.vogo-ereg .vogo-signup__opt.is-off { opacity: .55; cursor: not-allowed; }
body.vogo-ereg .vogo-signup__opt.is-off .vogo-signup__icon { background: #f3f4f6; color: #9ca3af; }

/* 13.10.2026: the address asked for a profile that does not exist — a band at the top of the page. */
body.vogo-ereg .vogo-cfg-notice {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000; padding: 10px 16px; text-align: center;
  background: var(--brand-tint); color: var(--ereg-ink); border-bottom: 2px solid var(--brand);
  font: 600 14px/1.4 Inter, system-ui, sans-serif;
}
