/* ================================================================
   Squad City RP — Auth Modal Styles
   ================================================================ */

/* Overlay */
.auth-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(3, 8, 16, .82);
  backdrop-filter: blur(12px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden;
  transition: opacity .3s, visibility .3s;
  padding: 20px;
}
.auth-overlay.open { opacity: 1; visibility: visible; }

/* Modal Card */
.auth-card {
  background: rgba(10, 21, 36, .92);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 32px 80px rgba(0,0,0,.7), 0 0 40px rgba(20,141,224,.08);
  backdrop-filter: blur(20px);
  width: 100%; max-width: 420px;
  transform: translateY(20px) scale(.97);
  transition: transform .35s cubic-bezier(.22,1,.36,1);
  overflow: hidden;
}
.auth-overlay.open .auth-card {
  transform: translateY(0) scale(1);
}

/* Close button */
.auth-close {
  position: absolute; top: 14px; right: 16px;
  background: none; border: 0; color: #7693ad; font-size: 22px;
  cursor: pointer; z-index: 2; width: 36px; height: 36px;
  border-radius: 10px; display: flex; align-items: center; justify-content: center;
  transition: background .2s, color .2s;
}
.auth-close:hover { background: rgba(255,255,255,.06); color: #fff; }

/* Header */
.auth-header {
  padding: 28px 28px 0; position: relative;
}
.auth-brand {
  font: 700 11px 'Oxanium', sans-serif;
  color: var(--cyan); letter-spacing: .18em; text-transform: uppercase;
  margin-bottom: 6px;
}
.auth-title {
  font: 800 24px 'Oxanium', sans-serif; color: #fff; margin: 0;
}
.auth-subtitle {
  font-size: 13px; color: var(--muted); margin: 6px 0 0;
}

/* Tabs */
.auth-tabs {
  display: flex; gap: 0; padding: 20px 28px 0;
}
.auth-tab {
  flex: 1; padding: 10px 0; text-align: center;
  font: 600 13px 'Plus Jakarta Sans', sans-serif; color: #7693ad;
  border: 0; background: none; cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: color .2s, border-color .2s;
}
.auth-tab:hover { color: #a8c4db; }
.auth-tab.active {
  color: var(--blue); border-bottom-color: var(--primary);
}

/* Form Body */
.auth-body {
  padding: 22px 28px 28px;
  position: relative;
  min-height: 260px;
}

/* Form panels */
.auth-panel {
  display: none;
  animation: authFadeIn .3s ease;
}
.auth-panel.active { display: block; }
@keyframes authFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Input groups */
.auth-field {
  margin-bottom: 16px;
}
.auth-label {
  display: block; font-size: 12px; font-weight: 600;
  color: #9db2c7; margin-bottom: 6px;
  font-family: 'Plus Jakarta Sans', sans-serif;
}
.auth-input {
  width: 100%; padding: 11px 14px;
  background: rgba(6, 13, 23, .7);
  border: 1px solid rgba(126, 194, 255, .12);
  border-radius: 10px; color: #eff7ff;
  font: 400 14px 'Plus Jakarta Sans', sans-serif;
  outline: none; transition: border-color .2s, box-shadow .2s;
  box-sizing: border-box;
}
.auth-input::placeholder { color: #4a6278; }
.auth-input:focus {
  border-color: rgba(20, 141, 224, .5);
  box-shadow: 0 0 0 3px rgba(20, 141, 224, .12);
}
.auth-input.error {
  border-color: rgba(255, 90, 90, .5);
  box-shadow: 0 0 0 3px rgba(255, 90, 90, .1);
}
.auth-input.success {
  border-color: rgba(61, 226, 138, .5);
}

/* Input with icon */
.auth-input-wrap {
  position: relative;
}
.auth-input-wrap .auth-input { padding-right: 38px; }
.auth-input-icon {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  color: #4a6278; font-size: 14px; pointer-events: none;
}
.auth-input-icon.checking { color: var(--blue); animation: authSpin 1s linear infinite; }
.auth-input-icon.taken { color: #ff5c5c; }
.auth-input-icon.available { color: #3de28a; }

@keyframes authSpin {
  to { transform: translateY(-50%) rotate(360deg); }
}

/* Error / Success messages */
.auth-msg {
  padding: 10px 14px; border-radius: 10px;
  font-size: 13px; margin-bottom: 16px;
  display: none; align-items: center; gap: 8px;
}
.auth-msg.show { display: flex; }
.auth-msg.error {
  background: rgba(255, 60, 60, .1);
  border: 1px solid rgba(255, 90, 90, .25);
  color: #ff8a8a;
}
.auth-msg.success {
  background: rgba(61, 226, 138, .1);
  border: 1px solid rgba(61, 226, 138, .25);
  color: #6ee6a0;
}
.auth-field-error {
  font-size: 11px; color: #ff8a8a; margin-top: 4px;
  display: none;
}
.auth-field-error.show { display: block; }

/* Submit button */
.auth-submit {
  width: 100%; padding: 12px;
  background: linear-gradient(135deg, #148de0, #0b80db);
  border: 0; border-radius: 12px; color: #fff;
  font: 700 14px 'Plus Jakarta Sans', sans-serif;
  cursor: pointer; position: relative; overflow: hidden;
  transition: filter .2s, transform .1s;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.auth-submit:hover { filter: brightness(1.1); }
.auth-submit:active { transform: scale(.98); }
.auth-submit:disabled {
  opacity: .55; cursor: not-allowed; filter: none;
}
.auth-submit .spinner {
  width: 16px; height: 16px; border: 2px solid rgba(255,255,255,.3);
  border-top-color: #fff; border-radius: 50%;
  animation: authSpin 0.6s linear infinite;
  display: none;
}
.auth-submit.loading .spinner { display: block; }
.auth-submit.loading .btn-text { opacity: .6; }

/* Links */
.auth-link {
  color: var(--blue); font-size: 13px; cursor: pointer;
  background: none; border: 0; font-family: inherit;
  text-decoration: none; transition: color .2s;
}
.auth-link:hover { color: var(--cyan); text-decoration: underline; }
.auth-footer {
  text-align: center; margin-top: 18px;
  font-size: 13px; color: var(--muted);
}

/* Üyelik sözleşmesi onayı (register) */
.auth-consent-field {
  margin: 14px 0;
}
.auth-consent-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--muted);
  cursor: pointer;
  user-select: none;
}
.auth-consent-input {
  margin-top: 3px;
  width: 18px;
  height: 18px;
  accent-color: var(--cyan);
  flex-shrink: 0;
}
.auth-consent-link {
  color: var(--cyan);
  text-decoration: none;
}
.auth-consent-link:hover {
  text-decoration: underline;
}

/* 6-digit code inputs */
.auth-code-group {
  display: flex; gap: 8px; justify-content: center;
  margin: 20px 0;
}
.auth-code-input {
  width: 46px; height: 54px;
  background: rgba(6, 13, 23, .8);
  border: 1.5px solid rgba(126, 194, 255, .15);
  border-radius: 12px; color: #fff;
  font: 800 22px 'Oxanium', monospace;
  text-align: center; outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.auth-code-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(20,141,224,.15);
}
.auth-code-input.filled {
  border-color: rgba(61, 226, 138, .4);
  background: rgba(61, 226, 138, .06);
}

/* Verify info */
.auth-verify-info {
  text-align: center; padding: 14px;
  background: rgba(20, 141, 224, .08);
  border: 1px solid rgba(20, 141, 224, .15);
  border-radius: 12px; margin-bottom: 16px;
}
.auth-verify-info .email-display {
  color: var(--blue); font-weight: 700;
  font-family: 'Oxanium', monospace;
}

/* Password toggle */
.auth-pw-toggle {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  background: none; border: 0; color: #4a6278; cursor: pointer;
  font-size: 14px; padding: 4px;
}
.auth-pw-toggle:hover { color: #7693ad; }

/* Turnstile container */
.auth-turnstile {
  display: flex; justify-content: center;
  margin: 14px 0;
  min-height: 65px;
}

/* Steps indicator */
.auth-steps {
  display: flex; align-items: center; justify-content: center;
  gap: 8px; margin-bottom: 18px;
}
.auth-step-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(126, 194, 255, .2);
  transition: background .3s, transform .3s;
}
.auth-step-dot.active {
  background: var(--primary); transform: scale(1.3);
}
.auth-step-dot.done {
  background: #3de28a;
}

/* Logged in navbar state */
.nav-user {
  display: flex; align-items: center; gap: 10px;
}
.nav-user-name {
  color: var(--blue); font: 600 13px 'Oxanium', sans-serif;
  max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.nav-user-avatar {
  width: 30px; height: 30px; border-radius: 8px;
  background: linear-gradient(135deg, rgba(20,141,224,.3), rgba(75,183,255,.2));
  border: 1px solid rgba(75,183,255,.25);
  display: flex; align-items: center; justify-content: center;
  color: var(--blue); font-size: 13px;
}

/* Resend timer */
.auth-resend {
  text-align: center; margin-top: 12px; font-size: 12px; color: var(--muted);
}
.auth-resend-btn {
  color: var(--blue); cursor: pointer; background: none; border: 0;
  font: inherit; font-size: 12px;
}
.auth-resend-btn:disabled { color: #4a6278; cursor: not-allowed; }

/* Responsive */
@media (max-width: 480px) {
  .auth-card { max-width: 100%; border-radius: 16px; margin: 10px; }
  .auth-header, .auth-body { padding-left: 18px; padding-right: 18px; }
  .auth-tabs { padding-left: 18px; padding-right: 18px; }
  .auth-code-container { gap: 6px; }
  .auth-code-input { width: clamp(34px, 11vw, 42px); height: 46px; font-size: 17px; }
}

/* Nav & Hero Auth Buttons */
.btn-auth {
  background: linear-gradient(135deg, rgba(20, 141, 224, 0.4), rgba(11, 128, 219, 0.5)) !important;
  border: 1px solid rgba(120, 210, 255, 0.6) !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  box-shadow: 0 0 16px rgba(20, 141, 224, 0.35) !important;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}
.auth-hidden,
#navAuthBtn.auth-hidden,
#heroAuthBtn.auth-hidden,
#navUserArea.auth-hidden {
  display: none !important;
}
.btn-auth:hover {
  background: linear-gradient(135deg, #1693e5, #085fa8) !important;
  border-color: #80dcff !important;
  box-shadow: 0 0 25px rgba(75, 183, 255, 0.6) !important;
  transform: translateY(-2px);
}
.hero-auth-btn {
  background: rgba(20, 141, 224, 0.15) !important;
  border: 1px solid rgba(75, 183, 255, 0.45) !important;
  color: #80dcff !important;
}
.hero-auth-btn:hover {
  background: rgba(20, 141, 224, 0.3) !important;
  border-color: #80dcff !important;
  color: #ffffff !important;
  box-shadow: 0 0 20px rgba(75, 183, 255, 0.4) !important;
}

