/* ================================================================
   LOGIN.CSS — Login / signup / auth page
   Part of the RustyBlade BootCamp stylesheet, split for maintainability.
   ================================================================ */

/* ================================================================
   SECTION 30: LOGIN PANEL
   ================================================================ */

.auth-page {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 0 5vw;
  position: relative;
  overflow-x: hidden;
  min-height: 100vh; /* fallback */
  min-height: 100dvh; /* FIX: Safari iOS dynamic toolbar — dvh tracks the real visible viewport */
  height: 100vh; /* fallback */
  height: 100dvh; /* FIX: Safari iOS dynamic toolbar — dvh tracks the real visible viewport */
  background: var(--bg);
}
.auth-atmosphere {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(8, 9, 11, .95) 0%, rgba(8, 9, 11, .78) 48%, rgba(8, 9, 11, .34) 100%),
              url('/hero.avif') center 33% / cover no-repeat;
  opacity: .72;
  will-change: transform;
  backface-visibility: hidden;
  z-index: 0;
}
.auth-layout {
  position: relative;
  z-index: 1;
  flex: 1;
  display: grid;
  place-items: center;
  min-height: 0;
  overflow: hidden;
  padding: 20px 0;
}
.auth-panel {
  width: min(100%, 440px);
  padding: 12px 0 16px 0;
  max-height: 100%;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.auth-panel h1 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  line-height: .84;
  letter-spacing: -.07em;
  margin: 2px 0 2px 0;
  color: var(--text);
  word-spacing: 0.08em; /* FIX: restore legible spacing between words like "THE RANKS." */
}
.auth-panel h1 em {
  color: var(--accent-text);
  font-style: normal;
}
.reset-sub {
  max-width: 380px;
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.4;
  margin: 0 0 8px 0;
}
.auth-tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
  margin-bottom: 8px;
  flex-shrink: 0;
}
.auth-tabs button {
  flex: 1;
  padding: 6px 8px;
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  color: var(--text-secondary);
  font-size: 10px;
  letter-spacing: .13em;
  cursor: pointer;
  font-weight: 600;
  transition: 0.2s;
}
.auth-tabs button.active {
  border-bottom-color: var(--accent);
  color: var(--text);
}
.auth-form {
  display: grid;
  gap: 10px;
}
.auth-form label {
  display: grid;
  gap: 3px;
  color: var(--text-muted);
  font-size: 9px;
  letter-spacing: .14em;
  font-weight: 600;
  margin-bottom: 2px;
}
.reset-input {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  border: none !important;
  background: #111317 !important;
  border-radius: 4px;
  align-items: center;
  transition: none;
  overflow: hidden;
  min-height: 34px;
  box-shadow: none !important;
}
.reset-input:focus-within {
  background: #111317 !important;
  box-shadow: none !important;
}
.reset-input svg {
  margin-left: 10px;
  flex: none;
  align-self: center;
  width: 15px;
  height: 15px;
  color: var(--text-muted);
}
.reset-input input {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  appearance: auto !important;
  -webkit-appearance: auto !important;
  min-width: 0;
  width: 100%;
  flex: 1 1 auto !important;
  background: transparent !important;
  border: 0 !important;
  outline: 0;
  color: var(--text) !important;
  padding: 8px 10px;
  font: 13px Arial;
  height: auto !important;
  box-shadow: none !important;
}
.reset-input input::placeholder {
  color: var(--text-muted);
  opacity: 1 !important;
}
.reset-input input:-webkit-autofill,
.reset-input input:-webkit-autofill:hover,
.reset-input input:-webkit-autofill:focus,
.reset-input input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 30px #111317 inset !important;
  -webkit-text-fill-color: var(--text) !important;
  background-color: #111317 !important;
  background: #111317 !important;
  caret-color: var(--text);
  transition: background-color 5000s ease-in-out 0s;
}
.reset-input input:autofill {
  box-shadow: 0 0 0 30px #111317 inset !important;
  -webkit-text-fill-color: var(--text) !important;
  background-color: #111317 !important;
  caret-color: var(--text);
}
[data-theme="light"] .reset-input input:-webkit-autofill,
[data-theme="light"] .reset-input input:-webkit-autofill:hover,
[data-theme="light"] .reset-input input:-webkit-autofill:focus,
[data-theme="light"] .reset-input input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 30px #ffffff inset !important;
  -webkit-text-fill-color: var(--text) !important;
  background-color: #ffffff !important;
  background: #ffffff !important;
  caret-color: var(--text);
  transition: background-color 5000s ease-in-out 0s;
}
[data-theme="light"] .reset-input input:autofill {
  box-shadow: 0 0 0 30px #ffffff inset !important;
  -webkit-text-fill-color: var(--text) !important;
  background-color: #ffffff !important;
  caret-color: var(--text);
}
.reset-input button {
  border: 0;
  background: transparent;
  color: var(--text-muted);
  padding: 0 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
}
.reset-input button svg {
  margin: 0;
  width: 16px;
  height: 16px;
}
.reset-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 9px;
  border: none;
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .14em;
  cursor: pointer;
  border-radius: 4px;
  transition: background 0.2s, transform 0.1s;
  margin-top: 6px;
  width: 100%;
  text-align: center;
}
.reset-submit:hover {
  background: var(--accent-hover);
}
.reset-submit:active {
  transform: scale(0.98);
}
.google-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 10px;
  border: 1px solid #dadce0;
  background: #ffffff;
  color: #1a1a1a;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  cursor: pointer;
  border-radius: 4px;
  margin-top: 6px;
  transition: background 0.2s;
}
.google-button:hover {
  background: #f8f9fa;
  border-color: #c6c6c6;
}
.google-button:active {
  transform: scale(0.98);
}
.google-mark {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  color: #4285f4;
  font: 700 13px Arial;
  border: 1px solid #d9dce0;
  flex-shrink: 0;
}
.auth-forgot {
  display: block;
  text-align: center;
  color: var(--gold);
  font-size: 9px;
  letter-spacing: .13em;
  margin-top: 6px;
  cursor: pointer;
  transition: color 0.2s;
  font-weight: 500;
}
.auth-forgot:hover {
  color: var(--accent-text);
}
.auth-foot {
  text-align: center;
  color: var(--text-muted);
  font-size: 9px;
  margin-top: 8px;
  letter-spacing: .04em;
}
.auth-error {
  color: var(--red);
  display: none;
  margin-top: 6px;
  font-size: 12px;
  text-align: center;
  width: 100%;
}
#signupFields {
  display: none;
  gap: 4px;
}
#signupFields.show {
  display: grid !important;
}
#confirmField {
  display: none;
}
#confirmField.show {
  display: grid !important;
}
[data-theme="light"] .reset-input:focus-within {
  background: #ffffff !important;
  box-shadow: none !important;
}
[data-theme="light"] .reset-input input:focus {
  background: transparent !important;
  color: var(--text) !important;
}

