/* Login + registration redesign matching the supplied visa-photo reference.
   Scoped to these two pages; other project screens retain their styles. */
.auth-template-v3 {
  --auth-blue: #004984;
  --auth-panel: #4c718e;
  --auth-gold: #a67b3e;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  background-color: #eaf8ff;
  background-image: linear-gradient(rgba(233, 248, 255, .76), rgba(233, 248, 255, .76)), url('/images/auth-visa-background.jpg');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: var(--auth-blue);
  font-family: Arial, Helvetica, sans-serif;
}
.auth-template-v3 .auth-template-header {
  position: absolute;
  z-index: 10;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(990px, calc(100% - 48px));
  height: 0;
  min-height: 0;
  padding: 0;
  margin: 0;
  display: block;
}
.auth-template-v3 .auth-template-brand {
  position: absolute;
  top: 42px;
  left: 0;
  display: inline-flex;
  align-items: center;
  gap: 13px;
  color: var(--auth-blue);
  text-decoration: none;
}
.auth-template-v3 .auth-template-brand img {
  display: block;
  width: 75px;
  height: 75px;
  object-fit: contain;
  padding: 2px;
  border: 0;
  border-radius: 12px;
  background: #fff;
}
.auth-template-v3 .auth-template-brand span { display: grid; gap: 0; line-height: 1.08; }
.auth-template-v3 .auth-template-brand strong { font: 400 30px/1.1 Georgia, 'Times New Roman', serif; letter-spacing: 0; }
.auth-template-v3 .auth-template-brand small { font: 400 19px/1.14 Georgia, 'Times New Roman', serif; color: #9b733e; letter-spacing: 0; }
.auth-template-v3 .auth-top-home {
  position: absolute;
  top: 26px;
  right: 70px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-width: 114px;
  min-height: 35px;
  padding: 9px 16px;
  border: none;
  border-radius: 14px;
  background: #00518a;
  color: #fff;
  font: 700 12px/1.2 Arial, Helvetica, sans-serif;
  text-align: center;
  box-shadow: none;
}
.auth-template-v3 .auth-top-home:hover, .auth-template-v3 .auth-top-home:focus-visible { background: #003d6d; }
.auth-template-v3 .auth-shell {
  position: relative;
  display: grid;
  width: min(935px, calc(100% - 50px));
  max-width: none;
  min-height: 100vh;
  margin: 0 0 0 max(24px, calc((100vw - 967px) / 2));
  padding: 74px 0 30px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 398px);
  gap: 44px;
  align-items: start;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.auth-template-v3 .auth-aside {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 430px;
  padding: 109px 0 0;
  background: transparent;
  border: none;
  overflow: visible;
  color: var(--auth-blue);
}
.auth-template-v3 .auth-aside::before,
.auth-template-v3 .auth-aside::after { content: none; }
.auth-template-v3 .auth-aside .eyebrow {
  color: var(--auth-gold);
  font: 800 12px/1.3 Arial, Helvetica, sans-serif;
  letter-spacing: .015em;
}
.auth-template-v3 .auth-aside h1 {
  color: var(--auth-blue);
  margin: 12px 0 17px;
  font: 800 clamp(36px, 4.3vw, 48px)/1.12 Arial, Helvetica, sans-serif;
  letter-spacing: -.025em;
}
.auth-template-v3 .auth-aside p {
  max-width: 385px;
  margin: 0;
  color: #15212c;
  font: 400 10.5px/1.4 Arial, Helvetica, sans-serif;
}
.auth-template-v3 .auth-tagline {
  display: block;
  margin-top: auto;
  padding: 30px 0 0;
  color: #14212a;
  font: 800 10px/1.4 Arial, Helvetica, sans-serif;
  letter-spacing: 0;
}
.auth-template-v3 .auth-card {
  width: 100%;
  max-width: none;
  min-height: 450px;
  justify-self: stretch;
  align-self: start;
  padding: 7px 22px 23px;
  border: 2px solid #1191ff;
  border-radius: 15px;
  background: var(--auth-panel);
  box-shadow: none;
  color: #fff;
}
.auth-template-v3 .auth-card-heading { text-align: center; }
.auth-template-v3 .auth-card-heading img {
  display: block;
  width: 102px;
  height: 102px;
  margin: 0 auto 9px;
  padding: 4px;
  background: #fff;
  border-radius: 15px;
  object-fit: contain;
}
.auth-template-v3 .auth-card-heading h2 {
  margin: 0 0 10px;
  color: #fff;
  font: 400 16px/1.2 Georgia, 'Times New Roman', serif;
  text-align: center;
}
.auth-template-v3 .auth-card-label {
  display: block;
  font: 400 10px/1.25 Georgia, 'Times New Roman', serif;
  color: #fff;
  letter-spacing: 0;
}
.auth-template-v3 .auth-card-heading p {
  margin: 1px 0 6px;
  color: #d8e3eb;
  font: 400 10px/1.4 Arial, Helvetica, sans-serif;
}
.auth-template-v3 .stack-form { display: grid; gap: 13px; }
.auth-template-v3 .stack-form label { display: grid; gap: 2px; color: #fff; font: 400 14px/1.15 Arial, Helvetica, sans-serif; }
.auth-template-v3 .stack-form input,
.auth-template-v3 .stack-form select {
  display: block;
  width: 100%;
  min-width: 0;
  height: 48px;
  min-height: 0;
  margin: 0;
  padding: 10px 17px;
  border: 1px solid #dae1e8;
  border-radius: 10px;
  background: #fff;
  color: #233c53;
  font: 400 14px/1.4 Arial, Helvetica, sans-serif;
  box-shadow: none;
}
.auth-template-v3 .stack-form input::placeholder { color: #a6a6a6; opacity: 1; }
.auth-template-v3 .stack-form input:focus-visible,
.auth-template-v3 .stack-form select:focus-visible { outline: 3px solid #b4dcff; outline-offset: 1px; }
.auth-template-v3 .button-full {
  display: flex;
  justify-self: center;
  align-items: center;
  justify-content: center;
  width: min(190px, 100%);
  height: 49px;
  min-height: 0;
  margin-top: 8px;
  padding: 10px 15px;
  border: 0;
  border-radius: 14px;
  background: #00518a;
  color: #fff;
  font: 400 22px/1.2 Arial, Helvetica, sans-serif;
  box-shadow: none;
}
.auth-template-v3 .button-full:hover { background: #003d6e; box-shadow: none; }
.auth-template-v3 .auth-switch {
  margin: 17px 0 0;
  color: #fff;
  font: 700 10px/1.4 Arial, Helvetica, sans-serif;
  text-align: center;
}
.auth-template-v3 .auth-switch a { color: #fff; text-decoration: underline; text-underline-offset: 2px; }
.auth-template-v3 .auth-switch a:focus-visible,
.auth-template-v3 .auth-template-brand:focus-visible,
.auth-template-v3 .auth-top-home:focus-visible { outline: 3px solid #79bfff; outline-offset: 3px; }

/* The login form stays vertically centered in the available desktop viewport.
   Registration keeps its original (top-aligned) placement. */
.auth-template-v3 .auth-shell-login .auth-card {
  align-self: center;
}

/* Registration retains every required backend field, with denser spacing. */
.auth-template-v3 .auth-shell-register .auth-card { min-height: 0; padding: 10px 22px 20px; }
.auth-template-v3 .auth-shell-register .auth-card-heading img { width: 80px; height: 80px; margin: 0 auto 4px; }
.auth-template-v3 .auth-shell-register .auth-card-heading h2 { margin-bottom: 8px; }
.auth-template-v3 .auth-shell-register .auth-card-heading p { margin-bottom: 9px; }
.auth-template-v3 .auth-shell-register .stack-form { gap: 9px; }
.auth-template-v3 .auth-shell-register .stack-form label { font-size: 12px; gap: 3px; }
.auth-template-v3 .auth-shell-register .stack-form input,
.auth-template-v3 .auth-shell-register .stack-form select { height: 39px; padding: 7px 11px; font-size: 12px; }
.auth-template-v3 .auth-shell-register .stack-form small { margin: 1px 0 0; font-size: 10px; color: #e6edf3; }
.auth-template-v3 .auth-shell-register .form-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 10px; }
.auth-template-v3 .auth-shell-register .button-full { width: min(230px,100%); height: 44px; font-size: 15px; margin-top: 5px; }
.auth-template-v3 .auth-shell-register .auth-switch { margin-top: 12px; }

@media (max-width: 1050px) and (min-width: 761px) {
  .auth-template-v3 .auth-shell { width: calc(100% - 70px); margin: 0 auto; gap: 28px; grid-template-columns: minmax(0,1fr) minmax(335px, 398px); }
  .auth-template-v3 .auth-top-home { right: 18px; }
  .auth-template-v3 .auth-aside h1 { font-size: clamp(35px,4.7vw,46px); }
}
@media (max-width: 760px) {
  .auth-template-v3 { background-attachment: scroll; }
  .auth-template-v3 .auth-template-header {
    position: relative;
    display: flex;
    transform: none;
    left: auto;
    width: min(550px, calc(100% - 32px));
    height: auto;
    min-height: 88px;
    padding: 14px 0 0;
    margin: 0 auto;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
  }
  .auth-template-v3 .auth-template-brand { position: static; gap: 9px; }
  .auth-template-v3 .auth-template-brand img { width: 55px; height: 55px; }
  .auth-template-v3 .auth-template-brand strong { font-size: 24px; }
  .auth-template-v3 .auth-template-brand small { font-size: 14px; }
  .auth-template-v3 .auth-top-home { position: static; min-width: 0; min-height: 36px; margin-top: 7px; padding: 8px 11px; font-size: 11px; }
  .auth-template-v3 .auth-shell {
    grid-template-columns: 1fr;
    gap: 26px;
    width: min(550px, calc(100% - 32px));
    min-height: 0;
    padding: 16px 0 32px;
    margin: 0 auto;
  }
  .auth-template-v3 .auth-aside { min-height: 0; padding: 7px 0 0; }
  .auth-template-v3 .auth-aside h1 { font-size: clamp(34px, 7.5vw, 44px); margin: 12px 0 16px; }
  .auth-template-v3 .auth-aside p { max-width: 480px; font-size: 12px; }
  .auth-template-v3 .auth-tagline { padding-top: 20px; }
  .auth-template-v3 .auth-card { max-width: 460px; margin: 0 auto; }
}
@media (max-width: 420px) {
  .auth-template-v3 .auth-template-header { width: calc(100% - 26px); }
  .auth-template-v3 .auth-template-brand img { width: 48px; height: 48px; }
  .auth-template-v3 .auth-template-brand strong { font-size: 20px; }
  .auth-template-v3 .auth-template-brand small { font-size: 12px; }
  .auth-template-v3 .auth-shell { width: calc(100% - 26px); }
  .auth-template-v3 .auth-card { padding-left: 16px; padding-right: 16px; }
  .auth-template-v3 .auth-shell-register .auth-card { padding-left: 16px; padding-right: 16px; }
  .auth-template-v3 .auth-shell-register .form-grid { grid-template-columns: 1fr; gap: 8px; }
}
