.auth-layout {
  display: grid;
  gap: 0;
  grid-template-columns: minmax(230px, .87fr) minmax(340px, 1.13fr);
  max-width: 980px;
  margin: clamp(12px, 4vw, 54px) auto;
  overflow: hidden;
  border: 1px solid #d7ded5;
  border-radius: 18px;
  background: #fff;
}
.auth-photo { position: relative; min-height: 480px; overflow: hidden; background: #193c31; border-radius: 0; }
.auth-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.auth-photo::after { content: ""; position: absolute; inset: 55% 0 0; background: linear-gradient(transparent,rgba(12,32,25,.64)); }
.auth-photo-caption { position: absolute; z-index: 1; bottom: 26px; left: 24px; color: #fff; font: 650 .81rem/1.25 system-ui,sans-serif; letter-spacing: .14em; }
.auth-layout .auth-panel { border: 0; box-shadow: none; margin: 0; border-radius: 0; padding: clamp(26px,4.6vw,64px); align-self: center; min-width: 0; }
.auth-panel .view-head { display: block; margin: 0 0 1.6rem; }
.auth-panel .view-head h1 { margin: .3rem 0 .7rem; font-size: clamp(1.65rem,3vw,2.4rem); line-height: 1.3; }
.auth-panel .view-head > p:last-child { margin: 0; color: #495b52; font-size: .96rem; line-height: 1.75; }
.auth-form { display: grid; gap: 1rem; }
.auth-form .field { display: grid; gap: .4rem; margin: 0; color: #1c392e; font-size: .91rem; font-weight: 650; }
.auth-form input { width: 100%; min-height: 46px; padding: .62rem .8rem; background: #fff; color: #17382d; border: 1px solid #a2ada3; border-radius: 7px; font: 400 1rem/1.45 system-ui,sans-serif; box-sizing: border-box; }
.auth-form input:focus-visible,.auth-panel summary:focus-visible,.auth-open-app:focus-visible,.auth-back:focus-visible { outline: 3px solid #508b74; outline-offset: 2px; }
.auth-form .auth-code { max-width: 12rem; letter-spacing: .28em; font-variant-numeric: tabular-nums; }
.auth-form .btn { width: 100%; justify-content: center; min-height: 46px; margin: .1rem 0 0; }
.auth-form .btn:disabled { opacity: .65; cursor: wait; }
.auth-form .form-message { color: #8e3424; margin: 0; font-size: .93rem; line-height: 1.55; }
.auth-form .form-message:empty { display:none; }
.auth-help { margin: 1.2rem 0 0; font-size: .91rem; }
.auth-help summary { width: fit-content; cursor: pointer; padding: .45rem 0; color: #244638; font-weight: 620; }
.auth-help p { margin: .5rem 0; color: #46594c; line-height: 1.7; }
.auth-enrollment { display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: center; margin: 0 0 1.35rem; }
.auth-enrollment canvas { display:block; max-width: min(225px,100%); height:auto; border: 1px solid #d3dbd3; border-radius: 5px; }
.auth-enrollment canvas[hidden] { display:none; }
.auth-enrollment > div { flex: 1 1 155px; min-width:0; }
.auth-enrollment .auth-help { margin-top: .3rem; }
.auth-open-app,.auth-back { font-family: inherit; font-weight: 600; font-size: .9rem; line-height: 1.5; color: #204b39; text-underline-offset: .16em; }
.auth-open-app { display:inline-block; line-height: 1.6; padding: .4rem 0; }
.auth-key { display:block; padding: .6rem; overflow-wrap: anywhere; background: #edf1e9; border-radius: 5px; user-select: all; }
.auth-hint { margin-top: -.7rem; font-size: .81rem; color: #536354; }
.auth-back { margin-top: 1rem; border: 0; background: transparent; padding: .5rem 0; cursor: pointer; text-decoration: underline; }
@media(max-width:760px) {
  .auth-layout { grid-template-columns: 1fr; max-width: 540px; }
  .auth-photo { display:block; min-height: 135px; max-height: 155px; }
  .auth-layout:has(#coffee-verify) .auth-photo { display:none; }
  .auth-photo img { object-position: 50% 48%; }
  .auth-photo-caption { left: 20px; bottom: 14px; }
  .auth-layout .auth-panel { padding: 24px clamp(17px,5.6vw,35px) 30px; }
}
