/* ----------------- auth.css ----------------- */
/* =============================================================================
   GOTHWAD DESIGN SYSTEM — AUTH SCREENS & COMPONENTS
   ============================================================================= */

.chooser-list {
  width: 100%;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 10px;
}
.chooser-row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 14px 16px;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  color: var(--text);
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  margin-bottom: 8px;
}
.chooser-list .chooser-row {
  border: none;
  border-radius: 0;
  border-bottom: 1px solid var(--border);
  margin: 0;
}
.chooser-list .chooser-row:last-child { border-bottom: none; }
.chooser-row:hover { background: var(--bg-hover); }
.chooser-row.chooser-add { margin-top: 4px; }
.acct-plus {
  width: 36px; height: 36px; border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-hover); font-size: 20px; font-weight: 600; flex-shrink: 0;
}
.chooser-row.is-disabled { opacity: 0.5; cursor: not-allowed; }
.chooser-meta { display: flex; flex-direction: column; min-width: 0; }
.chooser-name { font-weight: 650; font-size: 14px; }
.chooser-email { font-size: 12px; color: var(--text-muted); }

.auth-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  min-height: 100vh;
}

.auth-container-modern {
  --auth-field-gap: 12px;
  --auth-label-gap: 6px;
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 10;
}

/* Header Card */
.auth-header-card {
  width: 100%;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 24px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.auth-logo-box {
  width: 68px;
  height: 68px;
  background: #0494f4;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  overflow: hidden;
  margin-bottom: 14px;
  box-shadow: 0 8px 24px rgba(4, 148, 244, 0.4);
}

.auth-logo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.auth-user-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 13px;
  color: var(--text);
  margin-bottom: 16px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.auth-user-chip:hover {
  background: var(--bg-hover);
  border-color: var(--border-strong);
}
.auth-user-chip-text {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 13px;
}

.auth-header-title {
  font-size: 26px;
  font-weight: 900;
  color: var(--text);
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}

.auth-header-desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.55;
  max-width: 270px;
  margin: 0 auto;
  font-weight: 500;
  opacity: 0.85;
}

/* Switcher Tabs (Sign In / Sign Up) */
.auth-nav-tabs {
  width: 100%;
  display: flex;
  gap: 8px;
  padding: 5px;
  background: rgba(40, 40, 40, 0.7);
  border: 1px solid var(--border);
  border-radius: 14px;
  margin-bottom: 18px;
  user-select: none;
}

.auth-tab-btn {
  flex: 1;
  padding: 10px 14px;
  font-size: 11.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
  color: var(--text-muted);
  border: none;
  background: transparent;
}

.auth-tab-btn:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  text-decoration: none;
}

.auth-tab-btn.active {
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(4, 148, 244, 0.3);
}

/* Form Card (legacy/fallback if needed) */
.auth-body-card {
  width: 100%;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 24px;
  box-shadow: var(--shadow);
}

/* Individual field group — standalone button-like field container */
.auth-field-group {
  width: 100%;
  margin-bottom: var(--auth-field-gap, 12px);
  display: flex;
  flex-direction: column;
  text-align: left;
}

/* Label written directly above the button-like field */
.auth-field-label {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: var(--auth-label-gap, 6px);
  letter-spacing: 0.02em;
  user-select: none;
}

/* Button-styled input box matching button height & geometry */
.btn-field-box {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  height: 48px;
  border-radius: 12px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  padding: 0 16px;
  transition: all 0.15s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.btn-field-box:focus-within {
  border-color: var(--accent);
  background: var(--bg-panel);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.btn-field-box.box-error,
.btn-field-box.box-error:focus-within {
  border-color: #ff4d4f !important;
  box-shadow: 0 0 0 3px rgba(255, 77, 79, 0.25) !important;
}

.auth-field-error-note {
  color: #ff4d4f;
  font-size: 12.5px;
  line-height: 1.4;
  margin-top: 6px;
  display: block;
  font-weight: 500;
  text-align: left;
}

.auth-field-error-note.hidden {
  display: none !important;
}

.btn-field-box .input {
  height: 100%;
  width: 100%;
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
  color: var(--text);
  font-size: 14px;
  outline: none;
}

.btn-field-box .input::placeholder {
  color: var(--text-faint);
  font-weight: 400;
}

.btn-field-box input[type="date"] {
  color-scheme: dark;
  font-family: inherit;
  color: var(--text);
  cursor: pointer;
}
@media (prefers-color-scheme: light) {
  .btn-field-box input[type="date"] {
    color-scheme: light;
  }
}

.btn-field-box .input-eye {
  position: absolute;
  right: 14px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Input matching button geometry (fallback/generic) */
.input-icon-wrap {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  height: 48px;
  border-radius: 12px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.input-icon-wrap:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.input-icon-wrap .input {
  height: 100%;
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  padding-left: 16px;
  padding-right: 14px;
  color: var(--text);
  font-size: 14px;
  width: 100%;
  outline: none;
}

.input-left-icon {
  display: none !important;
}

/* Suffix pill inside username field */
.input-suffix-pill {
  padding: 4px 10px;
  margin-right: 8px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 11px;
  font-family: var(--mono);
  color: var(--text-muted);
  white-space: nowrap;
  user-select: none;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.btn-lg {
  padding: 13px 20px;
  font-size: 14px;
  font-weight: 700;
  border-radius: 12px;
  height: 48px;
}

/* Action button outside the card */
.auth-btn-outside {
  margin-top: 14px;
  width: 100%;
}

/* Secondary Action Button (Forgot Password, Back) */
.btn-secondary-auth {
  width: 100%;
  height: 48px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text);
  font-weight: 700;
  font-size: 13.5px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 10px;
  text-decoration: none;
}
.btn-secondary-auth:hover {
  background: var(--bg-hover);
  border-color: var(--border-strong);
  color: var(--text);
  text-decoration: none;
}
.btn-secondary-auth:active {
  transform: scale(0.98);
}

.text-accent {
  color: var(--accent) !important;
}

.font-bold {
  font-weight: 700;
}

/* Bottom Info Card */
.auth-info-card {
  width: 100%;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 20px 18px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-top: 22px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  gap: 12px;
  user-select: none;
}

.auth-terms-text {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  line-height: 1.55;
  max-width: 340px;
  margin: 0 auto;
  opacity: 0.85;
}

.auth-divider-line {
  width: 100%;
  height: 1px;
  background: var(--border);
  opacity: 0.6;
}

.auth-atmanirbhar-text {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  line-height: 1.55;
  max-width: 340px;
  margin: 0 auto;
  opacity: 0.85;
}

.accent-link {
  color: var(--accent) !important;
  font-weight: 700;
  text-decoration: none;
}
.accent-link:hover {
  text-decoration: underline;
}



/* Keep Google form navigation from triggering mobile input-focus zoom. */
@media (max-width: 600px) {
  #google-onboarding .input, #google-mfa .input { font-size: 16px; }
}
