/* Apple original: Auth/AuthView.swift, Auth/LogoViews.swift, and the login field styles in
   Ext-Mod-Cons/Modifiers.swift.

   Spacing measured from the iPad Pro 13" app in BOTH orientations (2026-10-16), so it holds
   at any window height. Apple puts two Spacers above the logo and one below it: free space
   goes 2 : 1, which drops the logo below the middle (Barney 2026-09-12: "a small bias towards
   the top"). The fixed pixel values are what SwiftUI adds around each piece. */

.AuthView {
  height: 100%;
  min-height: 560px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 16px 14.5px;  /* .padding(); the Mac leaves 1.2 pt less under the footer */
  position: relative;
}
.AuthView-spacerTop    { flex: 2 1 0; margin-bottom: 8px; }
.AuthView-spacerBottom { flex: 1 1 0; margin-bottom: 16px; }

/* LogoView */
.LogoView { display: flex; flex-direction: column; align-items: center; }
.LogoView img { width: 80px; height: 80px; display: block; }
.LogoView-title {
  margin-top: 20px;
  font-family: "GothicA1", var(--ui);
  font-weight: 700;
  font-size: 30px;
  line-height: 37px;
  letter-spacing: 1px;
  color: var(--highlight);
  white-space: nowrap;
}

/* loginEmailFieldStyle() / loginPasswordFieldStyle():
   200-400 wide, 45 high, 10 in from the left, radius 15, charcoal hairline (0.3) */
.AuthView-field {
  position: relative;
  width: 100%;
  min-width: 200px;
  max-width: 400px;
  height: 45px;
  flex: none;
}
.AuthView-field input {
  width: 100%;
  height: 100%;
  padding: 0 10px;
  border: 0;
  border-radius: 15px;
  /* Apple's 0.3 charcoal stroke comes out as a light grey hairline: matched by colour */
  box-shadow: inset 0 0 0 0.5px rgba(35, 40, 40, 0.5);
  background: transparent;
  color: var(--label);
  font-size: 17px;
  font-weight: 400;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}
.AuthView-field input::placeholder { color: var(--charcoal); opacity: 1; }
.AuthView-field.password { margin-top: 38px; }        /* .padding(.vertical, 30) + spacing */
.AuthView-field.password input { padding-right: 50px; }
/* Hide the browsers' own reveal and clear buttons: the app draws its own eye */
.AuthView-field input::-ms-reveal, .AuthView-field input::-ms-clear { display: none; }

/* Show/hide password: SF "eye" / "eye.slash", 18 thin, titanium, in a 50 x 40 frame */
.AuthView-eye {
  position: absolute; right: 0; top: 2.5px;
  width: 50px; height: 40px;
  display: grid; place-items: center;
  color: var(--titanium);
}
.AuthView-eye svg { width: 26px; height: 26px; }

/* "Forgot Password?": callout (16), titanium, right-aligned to the fields; hidden (clear) until
   an email is entered. Apple gives it NEGATIVE padding, so it takes no height of its own. */
.AuthView-forgotRow { position: relative; width: 100%; min-width: 200px; max-width: 400px; height: 0; flex: none; }
.AuthView-forgot {
  position: absolute; right: 0; top: 7.6px;
  font-size: 16px; line-height: 21px; color: var(--titanium);
}
.AuthView-forgot.clear { color: transparent; }

/* ENTER: textButtonStyle, charcoal; clear until both fields are filled */
.AuthView-enter { margin-top: 46.2px; color: var(--charcoal); flex: none; }
.AuthView-enter.clear { color: transparent; }

/* FooterView: caption2, titanium; .padding(.bottom, 40) under ENTER, plus spacing.
   Apple's caption2 is 11; Roboto runs narrower than Apple's font, so 12 here gives the same
   width and height as the Mac app (measured 2026-10-16), and the Mac's line spacing. */
.FooterView {
  margin-top: 44.8px;
  font-size: 12px;
  line-height: 14.6px;
  letter-spacing: 0.15px;
  color: var(--titanium);
  text-align: center;
  flex: none;
}

/* LoaderView(tintColor: .titanium, scaleSize: 2.0).padding(.bottom, 50), over the middle */
.AuthView-loader {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, calc(-50% - 25px));
}

/* PickerView: "Name" left, the Picker (selected name + chevrons) right; no border (task 68).
   Apple's frame: 200-400 wide, 40-45 high - it takes the 45 (measured on the Mac app, with the
   Mac window's hidden 32 pt title bar allowed for), spacing 8 above the email field. */
.AuthView-picker {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; min-width: 200px; max-width: 400px; height: 45px;
  margin-bottom: 9px; flex: none;
  padding-top: 7px;       /* the Mac draws this text 2.7 Mac pt below the row's middle */
}
.AuthView-pickerLabel { padding-left: 12px; font-size: 17px; font-weight: 400; color: var(--charcoal); }
.AuthView-pickerButton {
  display: flex; align-items: center; gap: 6px;
  height: 100%; padding: 0 14px 0 10px;
  font-size: 17px; font-weight: 400; color: var(--charcoal);
}
.AuthView-pickerButton svg { width: 10px; height: 16px; }

/* No yellow autofill highlight (Barney 2026-10-16). Safari, Chrome and Edge paint fields they
   fill from saved passwords yellow; this keeps the autofill and drops the colour. Browsers will
   not let a page change that background directly, so it is covered with a white inner shadow
   (keeping the hairline) and the text colour is set back to normal. */
.AuthView-field input:-webkit-autofill,
.AuthView-field input:-webkit-autofill:hover,
.AuthView-field input:-webkit-autofill:focus,
.AuthView-field input:autofill {
  box-shadow: inset 0 0 0 0.5px rgba(35, 40, 40, 0.5), inset 0 0 0 1000px var(--systemBackground) !important;
  -webkit-text-fill-color: var(--label) !important;
  caret-color: var(--label);
  transition: background-color 600000s 0s;   /* Chrome: never let its yellow fade in */
}
.AuthView-field input:-webkit-autofill::first-line { font-family: var(--ui); font-size: 17px; }
