.auth-screen [hidden] { display: none !important; }
.auth-screen {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  background: var(--cream);
}
.auth-screen .brand-header {
  position: relative;
  text-align: center;
  padding: 28px 28px 36px;
  background: linear-gradient(175deg, #2D5F3F 0%, #3A7A52 40%, #4A8A62 70%, #FAF7F2 100%);
}
.auth-screen .back-link {
  position: absolute;
  top: 16px;
  left: 16px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.auth-screen .back-link svg {
  width: 22px;
  height: 22px;
  stroke: #fff;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.auth-screen .logo-container {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: #fff;
  margin: 8px auto 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(45,95,63,.25);
  overflow: hidden;
}
.auth-screen.register .logo-container { width: 88px; height: 88px; }
.auth-screen .logo-container img { width: 72px; height: 72px; object-fit: contain; }
.auth-screen.register .logo-container img { width: 64px; height: 64px; }
.auth-screen .brand-name {
  font-family: 'Noto Serif SC', serif;
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 2px;
  margin-bottom: 6px;
}
.auth-screen .brand-slogan { font-size: 12.5px; color: rgba(255,255,255,.8); letter-spacing: 1px; }
.auth-screen .form-area { padding: 8px 28px 0; }
.auth-screen .input-group { margin-bottom: 16px; }
.auth-screen .input-wrapper {
  display: flex;
  align-items: center;
  height: 48px;
  border: 1px solid #E8E8E8;
  border-radius: 12px;
  background: #fff;
  padding: 0 14px;
}
.auth-screen .input-wrapper:focus-within {
  border-color: var(--pine);
  box-shadow: 0 0 0 3px rgba(45,95,63,.08);
}
.auth-screen .input-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-right: 10px;
  fill: none;
  stroke: var(--text-tertiary);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.auth-screen .input-wrapper:focus-within .input-icon { stroke: var(--pine); }
.auth-screen .input-wrapper input {
  flex: 1;
  width: 100%;
  border: 0;
  outline: none;
  background: transparent;
  font-size: 14.5px;
  color: var(--text-primary);
  padding: 0;
}
.auth-screen .input-wrapper input::placeholder { color: #C0C0C0; }
.auth-screen .suffix-btn { flex-shrink: 0; padding: 4px; display: flex; }
.auth-screen .suffix-btn svg {
  width: 20px;
  height: 20px;
  stroke: var(--text-tertiary);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.auth-screen .forgot-row { text-align: right; margin-top: -6px; margin-bottom: 18px; }
.auth-screen .forgot-link {
  font-size: 13px;
  color: var(--pine);
  background: none;
  padding: 0;
}
.auth-screen .hint-line { font-size: 12px; color: var(--text-tertiary); line-height: 1.6; margin: -8px 0 16px; text-align: left; }
.auth-screen .primary-btn {
  width: 100%;
  height: 48px;
  border-radius: 24px;
  background: linear-gradient(135deg, #2D5F3F, #3A7A52);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 4px;
  box-shadow: 0 4px 16px rgba(45,95,63,.25);
  margin-top: 8px;
}
.auth-screen .primary-btn:active { transform: scale(.98); }
.auth-screen .bottom-section { padding: 0 28px; margin-top: 24px; }
.auth-screen .divider-line { display: flex; align-items: center; margin-bottom: 20px; }
.auth-screen .divider-line::before,
.auth-screen .divider-line::after { content: ''; flex: 1; height: 1px; background: #E8E8E8; }
.auth-screen .divider-line span { padding: 0 14px; font-size: 12px; color: var(--text-tertiary); white-space: nowrap; }
.auth-screen .social-login { display: flex; justify-content: center; margin-bottom: 20px; }
.auth-screen .social-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #F0F0F0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.auth-screen .social-btn svg { width: 26px; height: 26px; }
.auth-screen .agreement { display: flex; align-items: flex-start; margin-bottom: 8px; position: relative; }
.auth-screen .agreement input {
  position: absolute; opacity: 0; width: 18px; height: 18px; margin: 0;
}
.auth-screen .agreement .box {
  width: 18px; height: 18px; margin: 1px 8px 0 0; flex-shrink: 0;
  border: 1.5px solid #D0D0D0; border-radius: 4px; background: #fff;
  display: flex; align-items: center; justify-content: center;
}
.auth-screen .agreement .box svg {
  width: 12px; height: 12px; stroke: #fff; fill: none; stroke-width: 2.5;
  stroke-linecap: round; stroke-linejoin: round; opacity: 0;
}
.auth-screen .agreement input:checked + .box { background: var(--pine); border-color: var(--pine); }
.auth-screen .agreement input:checked + .box svg { opacity: 1; }
.auth-screen.register .brand-name { font-size: 20px; }
.auth-screen .agreement-text { font-size: 12px; color: var(--text-tertiary); line-height: 1.6; }
.auth-screen .agreement-text a { color: var(--pine); }
.auth-screen .switch-link { text-align: center; margin-top: 18px; padding-bottom: 28px; font-size: 13.5px; color: var(--text-tertiary); }
.auth-screen .switch-link a { color: var(--pine); font-weight: 500; }
.auth-screen .flash { margin: 12px 28px 0; }
.auth-screen .region-selector { position: relative; }
.auth-screen .region-display {
  display: flex;
  align-items: center;
  height: 48px;
  border: 1px solid #E8E8E8;
  border-radius: 12px;
  background: #fff;
  padding: 0 14px;
  width: 100%;
  text-align: left;
}
.auth-screen .region-display.open { border-color: var(--pine); box-shadow: 0 0 0 3px rgba(45,95,63,.08); }
.auth-screen .region-display svg {
  width: 20px;
  height: 20px;
  stroke: var(--text-tertiary);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  margin-right: 10px;
  flex-shrink: 0;
}
.auth-screen .region-text { flex: 1; font-size: 14.5px; color: #C0C0C0; }
.auth-screen .region-text.selected { color: var(--text-primary); }
.auth-screen .region-arrow { width: 16px; height: 16px; margin-right: 0; transition: transform .25s; }
.auth-screen .region-display.open .region-arrow { transform: rotate(180deg); }
.auth-screen .region-dropdown {
  display: none;
  position: absolute;
  top: 52px;
  left: 0;
  right: 0;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
  z-index: 20;
  overflow: hidden;
}
.auth-screen .region-dropdown.show { display: block; }
.auth-screen .region-levels { display: flex; border-bottom: 1px solid #F0F0F0; }
.auth-screen .region-level-tab {
  flex: 1;
  text-align: center;
  padding: 10px 0;
  font-size: 13px;
  color: var(--text-tertiary);
  position: relative;
}
.auth-screen .region-level-tab.active { color: var(--pine); font-weight: 500; }
.auth-screen .region-level-tab.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 30%;
  right: 30%;
  height: 2px;
  background: var(--pine);
}
.auth-screen .region-list { max-height: 180px; overflow-y: auto; padding: 6px 0; }
.auth-screen .region-item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 18px;
  font-size: 14px;
  color: var(--text-primary);
}
.auth-screen .region-item.selected { color: var(--pine); font-weight: 500; }
