/* Photo is a decorative layer; the logo and access controls remain separate and sharp. */
#auth.auth-photo {
  position: relative;
  display: grid !important;
  grid-template-columns: 1fr;
  min-height: 100svh;
  padding: 0 !important;
  overflow: clip;
  background: var(--public-bg, #edf2f5);
  color: var(--public-text, #182229);
}
#auth.auth-photo::after { display: none; }
#auth.auth-photo[hidden] { display: none !important; }
.auth-photo-scene {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  background: #087d91;
  clip-path: polygon(0 0, calc(49vw + 49svh) 0, calc(49vw - 51svh) 100%, 0 100%);
}
.auth-photo-scene img {
  display: block;
  width: calc(49vw + 49svh);
  height: 100%;
  object-fit: cover;
  object-position: center 70%;
}
#auth .auth-entry {
  position: relative;
  z-index: 1;
  align-self: center;
  display: grid;
  gap: clamp(1.5rem, 5svh, 3rem);
  width: min(26%, 390px);
  margin: 0 0 0 67%;
  padding: clamp(1.5rem, 6svh, 4rem) 0;
}
#auth .auth-brand {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  gap: .75rem;
  width: 100%;
  max-width: none;
  text-align: center;
  color: inherit;
  background: transparent;
}
#auth .auth-brand .app-logo { width: 128px; height: 166px; object-fit: contain; }
#auth .auth-brand .vlo-word { font-size: 2.9rem; line-height: 1; margin: 0; }
#auth .auth-brand #public-title { max-width: 300px; margin: 0; font-size: .82rem; line-height: 1.5; }
#auth .auth-brand #public-subtitle { font-size: .75rem; line-height: 1.4; }
#auth #public-subtitle:empty { display: none; }
#auth .auth-card { min-width: 0; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
#auth form { gap: .9rem; }
#auth label { color: inherit; font-size: .8rem; gap: .45rem; }
#auth input {
  height: 46px;
  border-radius: 7px;
  border-color: color-mix(in srgb, var(--public-text, #182229) 25%, var(--public-bg, #edf2f5));
  background: color-mix(in srgb, var(--public-surface, #fff) 75%, var(--public-bg, #edf2f5));
  color: inherit;
}
#auth button:focus-visible, #auth input:focus-visible, #auth a:focus-visible { outline: 3px solid #15adaa; outline-offset: 3px; }
#auth .auth-login-actions { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
#auth .auth-login-actions button { min-width: 0; min-height: 44px; padding: .7rem .35rem; border-radius: 7px; font-size: .8rem; }
#auth button.primary { background: #15adaa !important; border-color: #15adaa !important; color: #102c31 !important; }
#auth [data-tab="register"] { background: transparent; color: inherit; border-color: color-mix(in srgb, var(--public-text, #182229) 25%, var(--public-bg, #edf2f5)); }
#auth .auth-text-button { justify-self: end; min-height: 32px; padding: .25rem 0; border: 0; border-radius: 0; background: transparent; color: inherit; font-size: .74rem; text-decoration: underline; text-underline-offset: 3px; }
#auth #register [data-tab="login"] { justify-self: start; }
#auth #register h2 { font-size: 1.2rem; margin: 0; }
#auth #register .auth-help, #auth #register .access-request { font-size: .8rem; color: inherit; }
#auth #register .cols2 { grid-template-columns: 1fr; gap: .9rem; }
#auth #auth-msg { margin: .75rem 0 0; font-size: .8rem; overflow-wrap: anywhere; }
#auth #auth-msg:empty { display: none; }

/* On narrow screens keep the photo as a diagonal header, never behind a field. */
@media (max-width: 900px) {
  #auth .auth-photo-scene { height: 190px; bottom: auto; clip-path: polygon(0 0, 100% 0, 100% 50%, 0 100%); }
  #auth .auth-photo-scene img { width: 100%; height: 100%; object-position: center 49%; }
  #auth .auth-entry { width: min(100% - 2.5rem, 390px); margin: 0 auto; padding: 180px 0 max(2rem, env(safe-area-inset-bottom)); gap: 1.5rem; }
  #auth .auth-brand { gap: .6rem; }
  #auth .auth-brand .app-logo { width: 86px; height: 112px; }
  #auth .auth-brand .vlo-word { font-size: 2.2rem; }
}
@media (min-width: 901px) and (max-height: 650px) {
  #auth .auth-entry { gap: 1rem; padding: 1.5rem 0; }
  #auth .auth-brand .app-logo { width: 90px; height: 117px; }
}
