/* ==========================================================================
   SIGN IN — approved design.
   NEW FILE: public/css/signin.css

   Loaded only by resources/views/portal/signin.blade.php, which only the
   sign-in screen uses. Register, forgot-password, reset-password, the
   authenticated portal and the landing page never receive it, so nothing
   here can reach them.

   landing.css is loaded first and supplies the background system - .lz-hero,
   .lz-scenes, .lz-panel, .lz-haze, .lz-sweep, .lz-veil and their animations.
   NOTHING IN THIS FILE REDEFINES ANY OF THOSE. It adds the foreground the
   approved design puts on top, and three overrides where a full-page landing
   hero has to behave as a full-screen sign-in shell.
   ========================================================================== */

.sgn {
  --sg-navy:     #001F44;
  --sg-ink:      #101828;
  --sg-ink-2:    #3D4450;
  --sg-ink-3:    #667085;
  --sg-line:     #E4E7EC;
  --sg-field:    #F7F8FA;
  --sg-stop:     #8C2A22;

  margin: 0;
  min-block-size: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--sg-navy);
}

/* ---------- The three overrides on the landing hero ----------
   The landing hero is a band inside a scrolling page; here it is the screen.
   Height, and the room the card needs, are the only things that change. */
.sgn-hero {
  flex: 1 1 auto;
  min-block-size: clamp(620px, 88vh, 900px);
  display: flex;
  align-items: center;
}

/* ---------- Top-right navigation ---------- */

.sgn-nav {
  position: absolute;
  inset-block-start: 0;
  inset-inline-end: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 26px 40px;
  font-size: 13.5px;
}
.sgn-nav__link { color: rgba(255,255,255,.72); text-decoration: none; }
.sgn-nav__link:hover { color: #fff; }
.sgn-nav__rule { inline-size: 1px; block-size: 16px; background: rgba(255,255,255,.28); }
.sgn-nav__note { color: rgba(255,255,255,.72); }
.sgn-nav__cta {
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  border-block-end: 1.5px solid rgba(255,255,255,.85);
  padding-block-end: 2px;
}
.sgn-nav__cta:hover { border-block-end-color: #fff; }

/* ---------- The stage: intro left, card right ---------- */

.sgn-stage {
  position: relative;
  z-index: 3;
  inline-size: 100%;
  max-inline-size: 1180px;
  margin-inline: auto;
  padding: 40px 24px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 440px;
  align-items: center;
  gap: 48px;
}

/* ---------- Left ---------- */

.sgn-intro { color: #fff; max-inline-size: 30ch; }
.sgn-intro__mark { block-size: 62px; inline-size: auto; display: block; margin-block-end: 28px; }
.sgn-intro__eyebrow {
  margin: 0 0 16px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .2em;
  color: rgba(255,255,255,.78);
}
.sgn-intro__title {
  margin: 0;
  font-size: clamp(34px, 3.6vw, 46px);
  font-weight: 700;
  letter-spacing: -.035em;
  line-height: 1.08;
  color: #fff;
}
.sgn-intro__rule {
  display: block;
  inline-size: 52px;
  block-size: 1px;
  background: rgba(255,255,255,.45);
  margin-block-start: 30px;
}

/* ---------- The card ---------- */

.sgn-card {
  background: #fff;
  border-radius: 16px;
  padding: 36px 38px 32px;
  box-shadow: 0 24px 60px rgba(0, 12, 28, .28);
}
.sgn-card__title {
  margin: 0 0 6px;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -.03em;
  color: var(--sg-navy);
}
.sgn-card__lede { margin: 0 0 26px; font-size: 14px; color: var(--sg-ink-2); }

.sgn-field { margin-block-end: 18px; }
.sgn-label-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.sgn-label { display: block; margin-block-end: 7px; font-size: 13.5px; font-weight: 600; color: var(--sg-ink); }

.sgn-input {
  inline-size: 100%;
  min-block-size: 50px;
  padding: 13px 16px;
  border: 1px solid var(--sg-line);
  border-radius: 10px;
  background: var(--sg-field);
  font-family: inherit;
  font-size: 14.5px;
  color: var(--sg-ink);
}
.sgn-input::placeholder { color: var(--sg-ink-3); }
.sgn-input:focus {
  outline: none;
  background: #fff;
  border-color: var(--sg-navy);
  box-shadow: 0 0 0 3px rgba(0, 31, 68, .12);
}
.sgn-input.is-invalid { border-color: var(--sg-stop); }
.sgn-input--pad { padding-inline-end: 72px; }

.sgn-input-wrap { position: relative; }
.sgn-reveal {
  position: absolute;
  inset-inline-end: 14px;
  inset-block-start: 50%;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--sg-ink-2);
  cursor: pointer;
  padding: 4px;
}
.sgn-reveal:hover { color: var(--sg-navy); }

.sgn-link { font-size: 13px; font-weight: 600; color: var(--sg-navy); text-decoration: none; }
.sgn-link:hover { text-decoration: underline; }
.sgn-link--strong { font-size: 14px; text-decoration: underline; text-underline-offset: 3px; }

.sgn-error { margin: 7px 0 0; font-size: 12.5px; font-weight: 500; color: var(--sg-stop); }

/* Ticked and disabled: every session is remembered already, so the control
   states a fact rather than offering a choice the backend does not have. */
.sgn-remember { display: flex; align-items: center; gap: 10px; margin-block: 4px 22px; }
.sgn-check {
  inline-size: 18px;
  block-size: 18px;
  accent-color: var(--sg-navy);
  margin: 0;
}
.sgn-check:disabled { opacity: 1; }
.sgn-remember__label { font-size: 13.5px; color: var(--sg-ink-2); }

.sgn-submit {
  inline-size: 100%;
  min-block-size: 52px;
  border: 0;
  border-radius: 10px;
  background: var(--sg-navy);
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -.01em;
  cursor: pointer;
}
.sgn-submit:hover { background: #0A2E5C; }
.sgn-submit:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

.sgn-foot {
  margin-block-start: 26px;
  padding-block-start: 20px;
  border-block-start: 1px solid var(--sg-line);
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 14px;
  color: var(--sg-ink-2);
}

/* ---------- Footer ---------- */

.sgn-footer {
  flex: 0 0 auto;
  background: var(--sg-navy);
  border-block-start: 1px solid rgba(255,255,255,.12);
}
.sgn-footer p {
  max-inline-size: 1180px;
  margin: 0 auto;
  padding: 18px 40px;
  font-size: 12.5px;
  color: rgba(255,255,255,.6);
}

.sgn-sr {
  position: absolute; inline-size: 1px; block-size: 1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}

/* ---------- Responsive ----------
   The card comes under the intro rather than beside it, and the scenes carry
   on behind exactly as they do on the landing page at the same width. */

@media (max-width: 1023px) {
  .sgn-stage { grid-template-columns: minmax(0, 1fr); gap: 32px; max-inline-size: 560px; }
  .sgn-hero { align-items: flex-start; padding-block-start: 88px; }
  .sgn-intro { max-inline-size: none; }
}

@media (max-width: 767px) {
  .sgn-nav { padding: 18px 20px; gap: 10px; font-size: 12.5px; }
  .sgn-nav__link { display: none; }
  .sgn-nav__rule { display: none; }
  .sgn-stage { padding: 24px 18px 40px; }
  .sgn-intro__mark { block-size: 46px; margin-block-end: 20px; }
  .sgn-intro__title { font-size: 30px; }
  .sgn-intro__rule { margin-block-start: 22px; }
  .sgn-card { padding: 26px 22px 24px; border-radius: 14px; }
  .sgn-card__title { font-size: 22px; }
  /* 16px minimum: anything smaller triggers an automatic zoom on iOS that is
     nearly impossible to recover from mid-form. */
  .sgn-input { font-size: 16px; min-block-size: 48px; }
  .sgn-footer p { padding: 14px 20px; }
}

/* FINAL SIGN-IN — approved clean navy background */
.sgn .lz-scenes,
.sgn .lz-sweep,
.sgn .lz-veil {
    display: none !important;
}

.sgn-hero {
    background: #001731 !important;
}

.sgn-check:checked {
    accent-color: #001F44;
}


/* EXACT APPROVED SIGN-IN COMPOSITION */
.sgn {
    background: #001731 !important;
}

.sgn-hero {
    min-height: calc(100vh - 110px) !important;
    background:
        linear-gradient(102deg,
            transparent 0 43%,
            rgba(5,48,91,.24) 43.1% 61%,
            transparent 61.1%),
        linear-gradient(102deg,
            transparent 0 64%,
            rgba(7,57,105,.16) 64.1% 82%,
            transparent 82.1%),
        #001731 !important;
}

.sgn-stage {
    max-width: 1120px !important;
    grid-template-columns: minmax(0,1fr) 440px !important;
    gap: 72px !important;
    padding: 48px 24px !important;
}

.sgn-intro {
    max-width: 430px !important;
}

.sgn-intro__mark {
    height: 62px !important;
    margin-bottom: 32px !important;
}

.sgn-intro__eyebrow {
    margin-bottom: 18px !important;
}

.sgn-intro__title {
    font-size: 44px !important;
    line-height: 1.08 !important;
}

.sgn-card {
    width: 100% !important;
    padding: 36px 38px 32px !important;
    border-radius: 18px !important;
    box-shadow: 0 20px 55px rgba(0,0,0,.18) !important;
}

.sgn-nav {
    padding: 26px 40px !important;
}

.sgn-footer {
    min-height: 72px !important;
    background: #001f44 !important;
}

.sgn-footer p {
    max-width: 1120px !important;
    padding: 22px 24px !important;
}

.sgn-check {
    appearance: none;
    -webkit-appearance: none;
    width: 19px !important;
    height: 19px !important;
    border: 1px solid #c9ced6;
    border-radius: 4px;
    background: #fff;
    cursor: default;
}

@media (max-width: 1023px) {
    .sgn-hero {
        min-height: auto !important;
    }

    .sgn-stage {
        grid-template-columns: 1fr !important;
        max-width: 560px !important;
    }

    .sgn-intro__title {
        font-size: 34px !important;
    }
}


/* Keep me signed in — interactive visual control */
.sgn-check {
    appearance: auto !important;
    -webkit-appearance: checkbox !important;
    cursor: pointer !important;
    accent-color: #001F44 !important;
}

.sgn-check-row,
.sgn-check-row label {
    cursor: pointer !important;
}

