/* ============================================================
   COMMUNITYHUB — WMG ELITE VISUAL DESIGN SYSTEM (login.css)
   Near-Black (#101010), Bright Red (#ff1d25), Minimal Underlines
============================================================= */

/* ---------- 0. Splash Screen UI ---------- */
#splash-view {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: #101010;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 0;
}

.splash-watermark {
  position: absolute;
  top: -10%;
  left: -20%;
  width: 140%;
  height: 140%;
  pointer-events: none;
  z-index: 1;
}

.splash-watermark svg {
  width: 100%;
  height: 100%;
}

.splash-container {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  height: 85vh;
  width: 100%;
  max-width: 440px;
  padding: 40px 24px;
  text-align: center;
}

.splash-logo-box {
  margin-top: 15vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.splash-red-badge {
  background-color: #ff1d25;
  color: #ffffff;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 26px;
  letter-spacing: 2px;
  padding: 8px 18px;
  text-transform: uppercase;
  border-radius: 2px;
  box-shadow: 0 4px 14px rgba(255, 29, 37, 0.3);
}

.splash-sub-text {
  color: #e4e4e7;
  font-size: 38px;
  font-weight: 300;
  letter-spacing: 3px;
  margin-top: 6px;
  text-transform: lowercase;
}

.splash-info {
  margin-top: 40px;
}

.splash-title {
  color: #ffffff;
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 0.5px;
  margin: 0 0 8px;
}

.splash-subtitle {
  color: #a1a1aa;
  font-size: 14px;
  font-weight: 400;
  margin: 0 0 12px;
}

.splash-version {
  color: #71717a;
  font-size: 13px;
  font-weight: 400;
  display: block;
}

.splash-footer {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.splash-powered {
  color: #52525b;
  font-size: 12px;
  font-weight: 400;
}

.splash-footer-brand {
  color: #ff1d25;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 1px;
}


/* ---------- 1. Full-Screen Dark Background for Auth View ---------- */
#auth-view {
  background-color: #101010 !important;
  min-height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow-x: hidden;
  padding: 40px 16px;
}

.auth-bg-watermark {
  position: absolute;
  top: -15%;
  left: -25%;
  width: 150%;
  height: 150%;
  pointer-events: none;
  z-index: 0;
}

.auth-bg-watermark svg {
  width: 100%;
  height: 100%;
}

#auth-view .page {
  max-width: 440px;
  width: 100%;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.auth-card {
  width: 100%;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0;
  border-radius: 0;
}

/* ---------- 2. Top Centered Brand Logo ---------- */
.auth-header-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-bottom: 40px;
}

.auth-red-badge {
  background-color: #ff1d25;
  color: #ffffff;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 24px;
  letter-spacing: 2px;
  padding: 6px 16px;
  text-transform: uppercase;
  border-radius: 2px;
}

.auth-sub-brand {
  color: #e4e4e7;
  font-size: 34px;
  font-weight: 300;
  letter-spacing: 3px;
  margin-top: 4px;
  text-transform: lowercase;
}


/* ---------- 3. Clean Tabs with Small Red Underline ---------- */
.auth-tabs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  margin-bottom: 36px;
  background: transparent;
  padding: 0;
  border: none;
}

.auth-tab {
  background: transparent;
  border: none;
  color: #71717a;
  font-family: var(--font-family);
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.8px;
  padding: 6px 4px 12px;
  cursor: pointer;
  transition: color 0.2s ease;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  border-radius: 0;
}

.auth-tab:hover:not(.auth-tab-active) {
  color: #a1a1aa;
  background: transparent;
}

.auth-tab-active {
  color: #ffffff !important;
  background: transparent !important;
  box-shadow: none !important;
}

/* Active tab red underline line */
.auth-tab::after {
  content: "";
  display: block;
  width: 24px;
  height: 2px;
  background: transparent;
  margin-top: 6px;
  border-radius: 2px;
  transition: background-color 0.2s ease;
}

.auth-tab-active::after {
  background: #ff1d25 !important;
}


/* ---------- 4. Underline Input Fields & Labels ---------- */
.auth-panels {
  padding: 0;
}

.auth-panel {
  display: none !important;
}

.auth-panel-active,
.auth-panel.auth-panel-active {
  display: block !important;
}

.auth-card .field {
  margin-bottom: 24px;
  position: relative;
}

.auth-card .field label {
  display: block;
  font-size: 12.5px;
  font-weight: 500;
  color: #71717a;
  margin-bottom: 8px;
  letter-spacing: 0.2px;
}

.red-dot {
  color: #ff1d25;
  font-size: 14px;
  margin-right: 3px;
  font-weight: 700;
}

/* Underline inputs */
.auth-card .field input[type="text"],
.auth-card .field input[type="tel"],
.auth-card .field input[type="email"],
.auth-card .field input[type="password"] {
  width: 100%;
  background: transparent !important;
  border: none !important;
  border-bottom: 1px solid #27272a !important;
  border-radius: 0 !important;
  padding: 10px 0 12px !important;
  color: #ffffff !important;
  font-size: 15px !important;
  font-weight: 400 !important;
  outline: none !important;
  box-shadow: none !important;
  transition: border-color 0.2s ease;
}

.auth-card .field input::placeholder {
  color: #3f3f46 !important;
  font-size: 14px;
}

.auth-card .field input:focus {
  border-bottom-color: #ff1d25 !important;
  background: transparent !important;
  box-shadow: none !important;
}

/* Password Toggle Icon */
.password-wrap {
  position: relative;
  width: 100%;
}

.password-wrap input {
  padding-right: 36px !important;
}

.toggle-password {
  position: absolute;
  right: 0;
  bottom: 10px;
  top: auto;
  transform: none;
  background: transparent;
  border: none;
  color: #71717a;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
}

.toggle-password:hover {
  color: #ffffff;
}

.toggle-password svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
}


/* ---------- 5. Action Row & Buttons ---------- */
.auth-action-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 36px;
  gap: 16px;
}

.auth-forgot-link {
  color: #a1a1aa;
  font-size: 13.5px;
  font-weight: 400;
  text-decoration: none;
  transition: color 0.15s ease;
}

.auth-forgot-link:hover {
  color: #ffffff;
}

/* Submit Buttons */
.btn-login-submit,
.auth-card .btn-primary {
  background: #ff1d25;
  color: #ffffff;
  border: none;
  border-radius: 4px;
  font-family: var(--font-family);
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 13px 32px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-transform: uppercase;
}

.btn-login-submit:hover:not(:disabled),
.auth-card .btn-primary:hover:not(:disabled) {
  background: #e0151c;
}

/* Disabled State */
.btn-login-submit:disabled,
.btn-login-submit.btn-disabled,
.auth-card .btn-primary:disabled {
  background: #27272a !important;
  color: #71717a !important;
  cursor: not-allowed;
}


/* ---------- 6. Sign Up / Registration Styling ---------- */
#auth-panel-register {
  max-width: 100%;
}

.field-checkbox-row {
  margin: 20px 0 20px;
  padding: 4px 6px;
  border-radius: 8px;
  transition: all 0.25s ease;
}

.field-checkbox-row.checkbox-row-error {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.4);
  padding: 8px 10px;
  animation: termsShake 0.4s ease;
}

@keyframes termsShake {

  0%,
  100% {
    transform: translateX(0);
  }

  20%,
  60% {
    transform: translateX(-4px);
  }

  40%,
  80% {
    transform: translateX(4px);
  }
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #a1a1aa;
  font-size: 13px;
  cursor: pointer;
  line-height: 1.5;
  user-select: none;
}

.checkbox-label input[type="checkbox"] {
  accent-color: #ff1d25;
  width: 17px;
  height: 17px;
  cursor: pointer;
  margin-top: 2px;
  flex-shrink: 0;
  border-radius: 4px;
}

.checkbox-label strong {
  color: #ffffff;
}

.legal-link {
  color: #ffffff !important;
  font-weight: 700;
  text-decoration: underline !important;
  text-decoration-color: rgba(255, 255, 255, 0.5) !important;
  text-underline-offset: 3px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.legal-link:hover {
  color: #ff1d25 !important;
  text-decoration-color: #ff1d25 !important;
}

.btn-register-submit.btn-disabled-hint {
  opacity: 0.6;
  filter: grayscale(15%);
}

.register-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.btn-register-cancel {
  flex: 1;
  background: #27272a;
  color: #e4e4e7;
  border: none;
  border-radius: 4px;
  padding: 13px;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 1px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.btn-register-cancel:hover {
  background: #3f3f46;
}

.btn-register-submit {
  flex: 1;
  background: #ff1d25;
  color: #ffffff;
  border: none;
  border-radius: 4px;
  padding: 13px;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 1px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.btn-register-submit:hover {
  background: #e0151c;
}

/* Photo Picker in Register */
.photo-preview-wrap {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 2px solid #ff1d25;
  background: #18181b;
}

.btn-photo-action {
  background: #27272a;
  border: 1px solid #3f3f46;
  color: #e4e4e7;
  border-radius: 4px;
}

.btn-photo-action:hover {
  background: #ff1d25;
  border-color: #ff1d25;
  color: #ffffff;
}

/* ---------- 7. Reset Password & Application Status Views ---------- */
#reset-password,
#application-status {
  background-color: #101010 !important;
  min-height: 100vh;
}

#reset-password .card,
#application-status .card {
  background: #18181b !important;
  border: 1px solid #27272a !important;
  color: #ffffff !important;
  border-radius: 16px !important;
  padding: 32px 28px !important;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7) !important;
}

#reset-password .card-title,
#application-status .card-title {
  color: #ffffff !important;
  font-size: 22px !important;
  font-weight: 700 !important;
  margin-bottom: 6px !important;
}

#reset-password .card-subtitle,
#application-status .card-subtitle {
  color: #a1a1aa !important;
  font-size: 13.5px !important;
  margin-bottom: 24px !important;
}

#reset-password label,
#application-status label {
  color: #a1a1aa !important;
  font-size: 13px !important;
  font-weight: 600 !important;
}

#reset-password input,
#application-status input {
  background: transparent !important;
  border: none !important;
  border-bottom: 1px solid #3f3f46 !important;
  border-radius: 0 !important;
  color: #ffffff !important;
  font-size: 15px !important;
  padding: 10px 0 !important;
}

#reset-password input:focus,
#application-status input:focus {
  border-bottom-color: #ff1d25 !important;
}

#reset-password input:-webkit-autofill,
#reset-password input:-webkit-autofill:hover,
#reset-password input:-webkit-autofill:focus,
#application-status input:-webkit-autofill,
#application-status input:-webkit-autofill:hover,
#application-status input:-webkit-autofill:focus {
  -webkit-text-fill-color: #ffffff !important;
  -webkit-box-shadow: 0 0 0px 1000px #18181b inset !important;
  transition: background-color 5000s ease-in-out 0s;
}

#application-status .btn-primary,
#reset-password .btn-primary {
  background: #ff1d25 !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 4px !important;
  font-family: var(--font-family);
  font-size: 13.5px !important;
  font-weight: 700 !important;
  letter-spacing: 1px !important;
  padding: 14px 32px !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  text-transform: uppercase !important;
  width: 100% !important;
  margin-top: 16px !important;
}

#application-status .btn-primary:hover,
#reset-password .btn-primary:hover {
  background: #e0151c !important;
}

/* Status Result Card Dark Theme Override */
#application-status .status-result-card {
  background: #18181b !important;
  border: 1px solid #27272a !important;
  border-radius: 16px !important;
  padding: 24px !important;
  color: #ffffff !important;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.6) !important;
}

#application-status .status-result-card .member-name {
  color: #ffffff !important;
  font-size: 17px !important;
  font-weight: 700 !important;
}

#application-status .status-result-card .company-name {
  color: #a1a1aa !important;
  font-size: 13.5px !important;
}

#application-status .status-pill-large {
  border-radius: 6px !important;
  padding: 10px 16px !important;
  font-size: 13.5px !important;
  font-weight: 700 !important;
  margin: 16px 0 !important;
}

#application-status .status-pill-large.pending {
  background: rgba(234, 179, 8, 0.15) !important;
  color: #facc15 !important;
  border: 1px solid rgba(234, 179, 8, 0.3) !important;
}

#application-status .status-pill-large.accepted {
  background: rgba(34, 197, 94, 0.15) !important;
  color: #4ade80 !important;
  border: 1px solid rgba(34, 197, 94, 0.3) !important;
}

#application-status .status-pill-large.rejected,
#application-status .status-pill-large.suspended {
  background: rgba(239, 68, 68, 0.15) !important;
  color: #fca5a5 !important;
  border: 1px solid rgba(239, 68, 68, 0.3) !important;
}

#application-status .status-desc {
  color: #a1a1aa !important;
  font-size: 14px !important;
  line-height: 1.5 !important;
  margin-bottom: 20px !important;
}

#application-status .status-actions {
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
}

#application-status .status-actions .btn-secondary,
#application-status .status-actions #btn-manual-refresh {
  background: #27272a !important;
  color: #ffffff !important;
  border: 1px solid #3f3f46 !important;
  border-radius: 6px !important;
  padding: 12px 20px !important;
  font-size: 13.5px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  width: 100% !important;
  text-align: center !important;
}

#application-status .status-actions .btn-secondary:hover,
#application-status .status-actions #btn-manual-refresh:hover {
  background: #3f3f46 !important;
  border-color: #ff1d25 !important;
}

#application-status .status-actions .btn-primary {
  background: #ff1d25 !important;
  margin-top: 0 !important;
}

.back-link {
  color: #a1a1aa;
}

.back-link:hover {
  color: #ffffff;
}


/* ---------- 8. Auth Messages ---------- */
.auth-message {
  font-size: 13px;
  padding: 10px 14px;
  border-radius: 4px;
  margin-bottom: 20px;
}

.auth-msg-error,
.auth-message.error {
  background: rgba(239, 68, 68, 0.15);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.auth-msg-success,
.auth-message.success {
  background: rgba(34, 197, 94, 0.15);
  color: #86efac;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

/* ---------- 9. Auth Footer Links ---------- */
.auth-footer {
  text-align: center;
  margin-top: 24px;
  padding-top: 16px;
  font-size: 13.5px;
  font-weight: 500;
  color: #a1a1aa !important;
}

.auth-footer span {
  color: #a1a1aa !important;
}

.auth-footer a {
  color: #ffffff !important;
  font-weight: 700;
  text-decoration: underline;
  margin-left: 4px;
  transition: color 0.15s ease;
}

.auth-footer a:hover {
  color: #ff1d25 !important;
}

.auth-already-reg-line {
  color: #a1a1aa !important;
  font-size: 13.5px;
  font-weight: 500;
  margin-bottom: 10px;
}

.auth-status-check-wrap {
  margin-top: 10px;
}

.auth-status-link-btn {
  display: inline-block;
  color: #e4e4e7 !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  border: 1px solid #3f3f46;
  border-radius: 6px;
  padding: 8px 18px;
  background: #27272a;
  transition: all 0.2s ease;
  letter-spacing: 0.3px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.auth-status-link-btn:hover {
  color: #ffffff !important;
  border-color: #ff1d25 !important;
  background: rgba(255, 29, 37, 0.15) !important;
  transform: translateY(-1px);
}