/* Approved DrKeys account design. Hallmark review: hierarchy 5, execution 4, specificity 5, restraint 4. */
.auth-entry {
  --auth-paper: #0b0a08;
  --auth-panel: #16130ee8;
  --auth-text: #f3e9d2;
  --auth-muted: #d5cbb7;
  --auth-line: #e0b03c38;
  --auth-accent: #e8b94f;
  --auth-logo-paper: #f3eddf;
  --auth-art: url('/assets/drkeys-auth-dark.png');
  --auth-display-font: Georgia, 'Times New Roman', serif;
  --auth-arabic-font: Tahoma, Arial, sans-serif;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  align-items: stretch;
  gap: 14px;
  max-width: 1180px;
  padding: 12px;
  margin-inline: auto;
  border: 1px solid var(--auth-line);
  border-radius: 16px;
  background: var(--auth-paper);
  color: var(--auth-text);
  isolation: isolate;
}
html[data-theme=light] .auth-entry {
  --auth-paper: #f6efe0;
  --auth-panel: #fffdf7ed;
  --auth-text: #17120a;
  --auth-muted: #5e5648;
  --auth-line: #bda77757;
  --auth-accent: #9b6c14;
  --auth-art: url('/assets/drkeys-auth-light.png');
}
.auth-entry .auth-copy {
  position: relative;
  isolation: isolate;
  min-width: 0;
  min-height: 720px;
  padding: 28px 24px;
  border-radius: 10px;
  overflow: clip;
  background: var(--auth-paper);
}
.auth-entry .auth-copy::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: linear-gradient(180deg, var(--auth-paper), color-mix(in srgb, var(--auth-paper) 85%, transparent) 42%, transparent 66%), var(--auth-art);
  background-position: center bottom;
  background-size: cover;
  background-repeat: no-repeat;
}
.auth-entry .auth-brand-mark {
  display: inline-grid;
  place-items: center;
  width: 86px;
  height: 86px;
  margin-bottom: 26px;
  border: 1px solid var(--auth-line);
  border-radius: 10px;
  background: var(--auth-logo-paper);
}
.auth-entry .auth-brand-mark img { display: block; width: 82px; height: 82px; border-radius: 8px; }
.auth-entry .auth-copy h1 {
  position: relative;
  max-width: 100%;
  margin: 0;
  font-family: var(--auth-display-font);
  font-size: clamp(42px, 4.8vw, 64px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -.045em;
  color: var(--auth-text);
}
.auth-entry .auth-copy h1 span, .auth-entry .auth-copy h1 em { display: block; }
.auth-entry .auth-copy h1 em { color: var(--auth-accent); font-weight: 500; }
.auth-entry .auth-copy .lead {
  position: relative;
  max-width: 330px;
  margin: 20px 0 0;
  font-size: 15px;
  line-height: 1.65;
  color: var(--auth-muted);
}
.auth-entry .form-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: clamp(24px, 3vw, 38px);
  margin: 0;
  background: var(--auth-panel);
  border: 1px solid var(--auth-line);
  border-radius: 10px;
  color: var(--auth-text);
}
.auth-entry .form-panel h2 { font-size: 30px; line-height: 1.25; margin: 0 0 26px; color: var(--auth-text); }
.auth-entry .field { margin-bottom: 18px; gap: 8px; font-weight: 500; }
.auth-entry .field input, .auth-entry .field select, .auth-entry .searchable-select-input { min-height: 48px; }
.auth-entry .birth-date-fields { margin-block: 0 18px; }
.auth-entry .birth-date-fields > div { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) minmax(0, .9fr); gap: 8px; }
.auth-entry .birth-date-fields .field { margin-bottom: 0; }
.auth-entry .birth-date-fields .search-select input { padding-inline: 6px 24px; font-size: 14px; }
.auth-entry .birth-date-fields .field > input { padding-inline: 8px; font-size: 14px; }
.auth-entry .form-panel form > p { margin: 0 0 20px; font-size: 13px; }
.auth-entry .form-panel form > p a, .auth-entry .auth-policy a { color: var(--auth-accent); text-decoration: underline; text-underline-offset: 3px; }
.auth-entry .form-panel form > .button { min-height: 48px; margin-top: 6px; justify-content: center; }
.auth-entry .form-switch { margin: 24px 0 0; padding-top: 22px; border-top: 1px solid var(--auth-line); line-height: 1.7; }
.auth-entry .auth-policy { margin: 14px 0 0; font-size: 11px; line-height: 1.7; color: var(--auth-muted); }
.auth-entry .google-button { min-height: 46px; }
.auth-entry .auth-divider { margin-block: 18px; }
.auth-entry--register .form-panel h2 { margin-bottom: 22px; }
[dir=rtl] .auth-entry .auth-copy h1 { font-family: var(--auth-arabic-font); font-size: clamp(35px, 3.9vw, 50px); line-height: 1.5; letter-spacing: 0; }
[dir=rtl] .auth-entry .auth-copy h1 em { font-style: normal; font-weight: 700; }
[dir=rtl] .auth-entry .auth-copy .lead { max-width: 350px; font-size: 15px; line-height: 1.9; }
[dir=rtl] .auth-entry .auth-copy { padding-top: 28px; }
@media (max-width: 950px) {
  .auth-entry { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; padding: 10px; }
  .auth-entry .auth-copy { padding: 24px 16px; }
  .auth-entry .auth-copy h1 { font-size: 47px; }
  .auth-entry .auth-copy .lead { font-size: 14px; }
  .auth-entry .form-panel { padding: 24px 20px; }
  [dir=rtl] .auth-entry .auth-copy h1 { font-size: 37px; }
}
@media (max-width: 700px) {
  .auth-entry { grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 8px; border-radius: 12px; }
  .auth-entry .auth-copy { min-height: 470px; padding: 20px; }
  .auth-entry .auth-copy::before { background-size: cover; background-position: center 62%; }
  .auth-entry .auth-brand-mark { width: 58px; height: 58px; margin-bottom: 18px; }
  .auth-entry .auth-brand-mark img { width: 54px; height: 54px; }
  .auth-entry .auth-copy h1 { max-width: 100%; font-size: 43px; }
  .auth-entry .auth-copy .lead { max-width: 280px; margin-top: 15px; font-size: 13px; line-height: 1.65; }
  .auth-entry .form-panel { padding: 25px 20px; }
  .auth-entry .form-panel h2 { font-size: 27px; }
  .auth-entry .field input, .auth-entry .field select, .auth-entry .searchable-select-input { font-size: 16px; }
  [dir=rtl] .auth-entry .auth-copy { padding-top: 20px; }
  [dir=rtl] .auth-entry .auth-copy h1 { font-size: 35px; line-height: 1.45; }
  [dir=rtl] .auth-entry .auth-copy .lead { max-width: 275px; font-size: 13px; line-height: 1.85; }
}
@media (max-width: 359px) {
  .auth-entry .auth-copy { padding: 18px 14px; }
  .auth-entry .auth-copy h1 { font-size: 38px; }
  .auth-entry .form-panel { padding: 24px 14px; }
  [dir=rtl] .auth-entry .auth-copy h1 { font-size: 31px; }
}
