/* ============================================
   YurStore — Auth Pages Stylesheet
   auth.css  |  Self-contained, no style.css dep
   ============================================ */

/* ── Google Fonts loaded via HTML ──────────── */

/* ── Reset ────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  border: none;
  cursor: pointer;
  font-family: inherit;
  background: none;
}

ul {
  list-style: none;
}

img {
  display: block;
  max-width: 100%;
}

/* ── Body ─────────────────────────────────── */
.auth-body {
  font-family: 'Inter', sans-serif;
  background: #0a0a0a;
  color: #f0f0f0;
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
}

/* ── CSS Variables ────────────────────────── */
:root {
  --red: #e74c3c;
  --red-dark: #c0392b;
  --red-deep: #96281b;
  --green: #10b981;
  --border: rgba(255, 255, 255, 0.08);
  --card-bg: rgba(16, 16, 16, 0.95);
  --input-bg: rgba(255, 255, 255, 0.04);
  --text-muted: rgba(255, 255, 255, 0.4);
  --radius: 12px;
  --transition: 0.2s ease;
}

/* ══════════════════════════════════════════
   ANIMATED BACKGROUND
══════════════════════════════════════════ */
.auth-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.auth-bg-gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 15% -5%, rgba(192, 57, 43, 0.20) 0%, transparent 55%),
    radial-gradient(ellipse 60% 50% at 85% 105%, rgba(108, 71, 255, 0.13) 0%, transparent 55%),
    #0a0a0a;
}

.auth-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse 100% 100% at 50% 40%, #000 20%, transparent 80%);
  mask-image: radial-gradient(ellipse 100% 100% at 50% 40%, #000 20%, transparent 80%);
}

.auth-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.3;
  animation: orbDrift 10s ease-in-out infinite alternate;
}

.auth-orb-1 {
  width: 420px;
  height: 420px;
  top: -120px;
  left: -100px;
  background: radial-gradient(circle, #c0392b 0%, transparent 65%);
  animation-delay: 0s;
}

.auth-orb-2 {
  width: 300px;
  height: 300px;
  bottom: -80px;
  right: -80px;
  background: radial-gradient(circle, #6c47ff 0%, transparent 65%);
  animation-delay: -4s;
}

.auth-orb-3 {
  width: 200px;
  height: 200px;
  top: 45%;
  left: 55%;
  opacity: 0.12;
  background: radial-gradient(circle, #f39c12 0%, transparent 65%);
  animation-delay: -7s;
}

@keyframes orbDrift {
  from {
    transform: translate(0, 0) scale(1);
  }

  to {
    transform: translate(25px, 35px) scale(1.1);
  }
}

/* ══════════════════════════════════════════
   NAVBAR
══════════════════════════════════════════ */
.auth-navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  background: rgba(8, 8, 8, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  z-index: 200;
}

/* Brand Logo */
.auth-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  color: inherit;
}

.auth-brand-icon {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--red-dark), var(--red-deep));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 900;
  color: #fff;
  font-family: 'Poppins', sans-serif;
  box-shadow: 0 4px 12px rgba(192, 57, 43, 0.4);
  flex-shrink: 0;
}

.auth-brand-text {
  font-family: 'Poppins', sans-serif;
  font-size: 18px;
  font-weight: 800;
  background: linear-gradient(135deg, #fff 40%, rgba(255, 255, 255, 0.6));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.auth-nav-back {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  padding: 6px 14px;
  border-radius: 8px;
  border: 1px solid var(--border);
  transition: all var(--transition);
}

.auth-nav-back:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
}

/* ══════════════════════════════════════════
   LAYOUT
══════════════════════════════════════════ */
.auth-main {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  padding: 60px 16px 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
}

.auth-main--register {
  align-items: flex-start;
  padding-top: 80px;
  padding-bottom: 48px;
}

/* ══════════════════════════════════════════
   AUTH CARD
══════════════════════════════════════════ */
.auth-card {
  position: relative;
  width: 100%;
  max-width: 440px;
  background: var(--card-bg);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 20px;
  padding: 32px 32px 28px;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.04),
    0 30px 80px rgba(0, 0, 0, 0.55),
    0 0 80px rgba(192, 57, 43, 0.05);
  flex-shrink: 0;
}

.auth-card--register {
  max-width: 500px;
}

/* Top glow line */
.auth-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 20%;
  right: 20%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(231, 76, 60, 0.5), transparent);
  border-radius: 99px;
}

/* ── Card Header ──────────────────────────── */
.auth-card-header {
  text-align: center;
  margin-bottom: 22px;
}

.auth-icon-wrap {
  width: 54px;
  height: 54px;
  border-radius: 15px;
  background: linear-gradient(135deg, var(--red-dark), var(--red-deep));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: #fff;
  margin: 0 auto 13px;
  box-shadow: 0 8px 24px rgba(192, 57, 43, 0.35);
}

.auth-title {
  font-size: 21px;
  font-weight: 800;
  font-family: 'Poppins', sans-serif;
  color: #fff;
  margin-bottom: 4px;
}

.auth-subtitle {
  font-size: 12.5px;
  color: var(--text-muted);
}

/* ── Social Buttons ───────────────────────── */
.social-login-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
}

.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 40px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.70);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.social-btn:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.18);
  color: #fff;
  transform: translateY(-1px);
}

.social-btn-discord {
  background: rgba(88, 101, 242, 0.10);
  border-color: rgba(88, 101, 242, 0.25);
  color: #9ca3f7;
}

.social-btn-discord:hover {
  background: rgba(88, 101, 242, 0.18);
  border-color: rgba(88, 101, 242, 0.45);
  color: #b4bffa;
}

/* ── Divider ──────────────────────────────── */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.07);
}

.auth-divider span {
  font-size: 11px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.28);
  white-space: nowrap;
  letter-spacing: 0.3px;
}

/* ══════════════════════════════════════════
   FORM ELEMENTS
══════════════════════════════════════════ */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.form-row-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.form-label {
  font-size: 11px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.45);
  text-transform: uppercase;
  letter-spacing: 0.7px;
}

.form-label-opt {
  font-weight: 400;
  color: rgba(255, 255, 255, 0.28);
  text-transform: none;
  letter-spacing: 0;
  font-size: 10.5px;
}

/* ── Input Wrapper ────────────────────────── */
.form-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

/* Left icon inside input */
.input-icon-left {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  color: rgba(255, 255, 255, 0.22);
  pointer-events: none;
  z-index: 1;
}

/* ── Input Field ──────────────────────────── */
.form-input {
  width: 100%;
  height: 43px;
  background: var(--input-bg);
  border: 1.5px solid rgba(255, 255, 255, 0.07);
  border-radius: 10px;
  padding: 0 14px;
  color: #f0f0f0;
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  outline: none;
  transition: border-color var(--transition), background var(--transition), box-shadow var(--transition);
  -webkit-appearance: none;
}

.form-input::placeholder {
  color: rgba(255, 255, 255, 0.18);
  font-size: 13px;
}

.form-input:focus {
  border-color: var(--red);
  background: rgba(231, 76, 60, 0.05);
  box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.13);
}

.form-input.is-valid {
  border-color: var(--green);
  background: rgba(16, 185, 129, 0.05);
}

.form-input.is-invalid {
  border-color: #ff6b6b;
  background: rgba(255, 107, 107, 0.05);
}

/* With left icon */
.form-input--icon-left {
  padding-left: 38px;
}

/* Phone prefix */
.form-prefix {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  padding: 0 11px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.40);
  border-right: 1.5px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.03);
  border-radius: 10px 0 0 10px;
  z-index: 1;
  pointer-events: none;
}

.form-input--prefix {
  padding-left: 52px;
}

/* Toggle password */
.toggle-password {
  position: absolute;
  right: 11px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 15px;
  color: rgba(255, 255, 255, 0.28);
  transition: color var(--transition);
  padding: 4px;
  line-height: 1;
  z-index: 2;
}

.toggle-password:hover {
  color: rgba(255, 255, 255, 0.65);
}

/* ── Form Meta ────────────────────────────── */
.form-hint {
  font-size: 10.5px;
  color: rgba(255, 255, 255, 0.28);
}

.form-error {
  font-size: 11px;
  color: #ff7675;
  font-weight: 500;
  min-height: 14px;
  display: block;
  line-height: 1.3;
}

/* ── Password Strength ────────────────────── */
.pw-strength {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pw-strength-bar {
  flex: 1;
  height: 3px;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 99px;
  overflow: hidden;
}

.pw-strength-fill {
  height: 100%;
  width: 0%;
  border-radius: 99px;
  transition: width 0.35s ease, background 0.3s ease;
}

.pw-strength-label {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.28);
  white-space: nowrap;
  min-width: 82px;
  text-align: right;
}

/* ── Row: remember/forgot ─────────────────── */
.form-row-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

/* ── Custom Checkbox ──────────────────────── */
.form-check {
  display: inline-flex;
  align-items: flex-start;
  gap: 9px;
  cursor: pointer;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.5;
  user-select: none;
  -webkit-user-select: none;
}

.form-check input[type="checkbox"] {
  display: none;
}

.form-check-box {
  width: 16px;
  height: 16px;
  min-width: 16px;
  border: 1.5px solid rgba(255, 255, 255, 0.16);
  border-radius: 4px;
  background: var(--input-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
  transition: all 0.2s;
}

.form-check input:checked+.form-check-box {
  background: var(--red);
  border-color: var(--red);
}

.form-check input:checked+.form-check-box::after {
  content: '';
  width: 8px;
  height: 5px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg) translateY(-1px);
  display: block;
}

/* ── Links ────────────────────────────────── */
.form-link {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--red);
  text-decoration: none;
  transition: color var(--transition);
}

.form-link:hover {
  color: #ff7675;
  text-decoration: underline;
}

.form-link-btn {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--red);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: color var(--transition);
  font-family: 'Inter', sans-serif;
}

.form-link-btn:hover {
  color: #ff7675;
  text-decoration: underline;
}

/* ── Submit Button ────────────────────────── */
.btn-auth {
  width: 100%;
  height: 46px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #d44333, var(--red-deep));
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  font-family: 'Poppins', sans-serif;
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 6px 22px rgba(192, 57, 43, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  letter-spacing: 0.2px;
  margin-top: 4px;
  position: relative;
  overflow: hidden;
}

.btn-auth::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent);
  opacity: 0;
  transition: opacity 0.2s;
}

.btn-auth:hover::after {
  opacity: 1;
}

.btn-auth:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(192, 57, 43, 0.45);
}

.btn-auth:active {
  transform: translateY(0);
}

.btn-auth:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

.btn-auth--green {
  background: linear-gradient(135deg, #12c98e, #047857);
  box-shadow: 0 6px 22px rgba(16, 185, 129, 0.30);
}

.btn-auth--green:hover {
  box-shadow: 0 12px 30px rgba(16, 185, 129, 0.42);
}

/* Loading spinner */
.btn-auth-loader {
  display: none;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.spin {
  animation: spin 0.65s linear infinite;
  display: inline-block;
}

/* ── Footer text ──────────────────────────── */
.auth-footer-text {
  margin-top: 18px;
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
}

/* ══════════════════════════════════════════
   SIDE PANEL (Desktop)
══════════════════════════════════════════ */
.auth-side {
  display: none;
  width: 340px;
  min-width: 300px;
  padding: 32px 24px;
}

.auth-side-inner {
  position: sticky;
  top: 90px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.auth-side-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.auth-side-title {
  font-size: 28px;
  font-weight: 900;
  font-family: 'Poppins', sans-serif;
  line-height: 1.2;
  color: #fff;
}

.gradient-text {
  background: linear-gradient(135deg, var(--red), #f39c12);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.auth-side-desc {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.42);
  line-height: 1.75;
}

.auth-side-features {
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.auth-side-features li {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.68);
}

.feature-icon {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

/* Ensure Bootstrap Icon color is never blocked */
.feature-icon i {
  color: inherit;
  font-size: inherit;
  line-height: 1;
}

/* Stats bar */
.auth-stats-bar {
  display: flex;
  align-items: center;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.auth-stat {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.auth-stat-val {
  font-size: 16px;
  font-weight: 800;
  font-family: 'Poppins', sans-serif;
  color: #fff;
}

.auth-stat-lbl {
  font-size: 9.5px;
  color: rgba(255, 255, 255, 0.3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.auth-stat-sep {
  width: 1px;
  height: 28px;
  background: rgba(255, 255, 255, 0.07);
  margin: 0 4px;
}

/* ══════════════════════════════════════════
   TOAST NOTIFICATION
══════════════════════════════════════════ */
.auth-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(70px);
  min-width: 220px;
  max-width: 90vw;
  background: #1c1c1e;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 12px;
  padding: 11px 18px;
  font-size: 13px;
  font-weight: 500;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 9999;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s;
  opacity: 0;
  pointer-events: none;
}

.auth-toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.auth-toast.toast-success {
  border-color: rgba(16, 185, 129, 0.35);
}

.auth-toast.toast-success i {
  color: #10b981;
  font-size: 16px;
}

.auth-toast.toast-error {
  border-color: rgba(231, 76, 60, 0.35);
}

.auth-toast.toast-error i {
  color: #e74c3c;
  font-size: 16px;
}

/* ══════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════ */

/* Desktop: show side panel */
@media (min-width: 880px) {
  .auth-main {
    padding: 60px 40px 48px;
  }

  .auth-main--register {
    padding-top: 80px;
    align-items: flex-start;
  }

  .auth-side {
    display: block;
  }

  .auth-card {
    margin: 0;
  }
}

@media (min-width: 1100px) {
  .auth-side {
    width: 380px;
  }

  .auth-card {
    max-width: 460px;
  }

  .auth-card--register {
    max-width: 520px;
  }
}

/* Mobile */
@media (max-width: 540px) {
  .auth-card {
    padding: 26px 18px 22px;
    border-radius: 16px;
  }

  .auth-title {
    font-size: 19px;
  }

  .social-login-row {
    grid-template-columns: 1fr 1fr;
  }

  .form-row-2col {
    grid-template-columns: 1fr;
    gap: 13px;
  }

  .auth-main {
    padding: 60px 12px 36px;
  }
}

@media (max-width: 360px) {
  .social-login-row {
    grid-template-columns: 1fr;
  }

  .auth-card {
    padding: 22px 14px 18px;
  }

  .form-input {
    height: 41px;
    font-size: 13.5px;
  }

  .btn-auth {
    height: 43px;
    font-size: 13.5px;
  }
}

/* Hide Number Input Arrows */
input[type='number']::-webkit-outer-spin-button,
input[type='number']::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
input[type='number'] {
  -moz-appearance: textfield;
}