/* ============================================================
   SELLER AUTH PAGES — Dark Modern Theme (match landing page)
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary:   #6366f1;
  --secondary: #06b6d4;
  --accent:    #a78bfa;
  --success:   #10b981;
  --danger:    #ef4444;
  --dark:      #0f172a;
  --card-bg:   rgba(15, 23, 42, 0.85);
  --border:    rgba(99, 102, 241, 0.25);
  --text:      rgba(255,255,255,0.9);
  --subtext:   rgba(255,255,255,0.5);
  --input-bg:  rgba(255,255,255,0.05);
  --radius:    16px;
  --transition: all .25s ease;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: #0f172a;
  position: relative;
  overflow-x: hidden;
}

/* ---- Background with Grid Pattern (like landing page) ---- */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(99,102,241,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99,102,241,0.06) 1px, transparent 1px);
  background-size: 60px 60px;
  z-index: 0;
  pointer-events: none;
}

/* Floating orbs */
body::after {
  content: '';
  position: fixed;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99,102,241,0.15) 0%, transparent 70%);
  top: -100px; right: -100px;
  filter: blur(60px);
  z-index: 0;
  animation: orbFloat 8s ease-in-out infinite;
}

@keyframes orbFloat {
  0%,100% { transform: translateY(0) scale(1); }
  50%      { transform: translateY(30px) scale(1.1); }
}

/* ---- Auth Card ---- */
.auth-card {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 460px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(99,102,241,0.2);
  border-radius: 24px;
  padding: 2.2rem 2rem;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow:
    0 0 0 1px rgba(99,102,241,0.1),
    0 25px 60px rgba(0,0,0,0.6),
    inset 0 1px 0 rgba(255,255,255,0.06);
  animation: cardIn 0.6s cubic-bezier(.22,1,.36,1) both;
}

@keyframes cardIn {
  from { opacity: 0; transform: translateY(30px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ---- Subtle top accent (single color, no rainbow) ---- */
.auth-card::before {
  content: '';
  position: absolute;
  top: 0; left: 20%; right: 20%;
  height: 1px;
  background: rgba(99,102,241,0.4);
  border-radius: 1px;
}

/* ---- Logo ---- */
.auth-logo {
  display: block;
  margin: 0 auto 1.4rem;
  max-height: 52px;
  width: auto;
  object-fit: contain;
  filter: brightness(1.1);
}

/* ---- Badge ---- */
.auth-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(99,102,241,0.12);
  border: 1px solid rgba(99,102,241,0.25);
  color: #a78bfa;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 50px;
  margin: 0 auto 1rem;
  width: fit-content;
}

.auth-badge .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #6366f1;
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.5; transform: scale(0.8); }
}

/* ---- Headings ---- */
.auth-card h2 {
  font-size: 1.55rem;
  font-weight: 800;
  text-align: center;
  color: #fff;
  letter-spacing: -0.5px;
  margin-bottom: 0.4rem;
}

.auth-card h2 .gradient-text {
  background: linear-gradient(135deg, #6366f1, #06b6d4, #a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.auth-card p.auth-sub {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.45);
  text-align: center;
  margin-bottom: 1.6rem;
}

/* ---- Alert Box ---- */
.alert {
  border-radius: 10px;
  font-size: 0.88rem;
  padding: 10px 14px;
  border: none;
  margin-bottom: 1rem;
}
.alert-danger  { background: rgba(239,68,68,0.15);   color: #fca5a5; border: 1px solid rgba(239,68,68,0.25); }
.alert-success { background: rgba(16,185,129,0.15);  color: #6ee7b7; border: 1px solid rgba(16,185,129,0.25); }
.alert-warning { background: rgba(245,158,11,0.15);  color: #fcd34d; border: 1px solid rgba(245,158,11,0.25); }

/* ---- Form Labels ---- */
.auth-card label {
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255,255,255,0.6);
  margin-bottom: 6px;
  display: block;
  letter-spacing: 0.2px;
}

/* ---- Input Fields ---- */
.input-wrap {
  position: relative;
  margin-bottom: 14px;
}

.input-wrap .input-icon-left {
  position: absolute;
  top: 50%; left: 14px;
  transform: translateY(-50%);
  color: rgba(255,255,255,0.25);
  font-size: 0.9rem;
  pointer-events: none;
  transition: color .2s;
}

.input-wrap .form-control {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(99,102,241,0.2);
  border-radius: 12px;
  color: #fff;
  padding: 12px 44px;
  font-size: 0.92rem;
  transition: var(--transition);
  width: 100%;
}

.input-wrap .form-control::placeholder { color: rgba(255,255,255,0.2); }

.input-wrap .form-control:focus {
  outline: none;
  background: rgba(99,102,241,0.08);
  border-color: rgba(99,102,241,0.55);
  box-shadow: 0 0 0 3px rgba(99,102,241,0.15);
  color: #fff;
}

.input-wrap .form-control:focus + .focus-line,
.input-wrap:focus-within .input-icon-left {
  color: #a78bfa;
}

/* Toggle password */
.toggle-password-icon {
  position: absolute;
  top: 50%; right: 14px;
  transform: translateY(-50%);
  color: rgba(255,255,255,0.25);
  cursor: pointer;
  font-size: 0.88rem;
  transition: color .2s;
}
.toggle-password-icon:hover { color: #a78bfa; }

/* Legacy support: .input-icon class */
.input-icon {
  position: relative;
}
.input-icon > i.fa-envelope,
.input-icon > i.fa-lock,
.input-icon > i.fa-user,
.input-icon > i.prefix-icon {
  position: absolute;
  top: 50%; left: 14px;
  transform: translateY(-50%);
  color: rgba(255,255,255,0.25);
  font-size: 0.88rem;
  pointer-events: none;
}
.input-icon .form-control {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(99,102,241,0.2);
  border-radius: 12px;
  color: #fff;
  padding: 12px 44px;
  font-size: 0.92rem;
  transition: var(--transition);
}
.input-icon .form-control::placeholder { color: rgba(255,255,255,0.2); }
.input-icon .form-control:focus {
  outline: none;
  background: rgba(99,102,241,0.08);
  border-color: rgba(99,102,241,0.55);
  box-shadow: 0 0 0 3px rgba(99,102,241,0.15);
  color: #fff;
}
.input-icon .toggle-password-icon {
  position: absolute;
  top: 50%; right: 14px;
  transform: translateY(-50%);
  color: rgba(255,255,255,0.25);
  cursor: pointer;
}

/* ---- Remember Me & Forgot ---- */
.simple-login-extra {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.4);
  margin: 12px 0 18px;
}
.simple-login-extra .form-check-input {
  background-color: rgba(255,255,255,0.1);
  border-color: rgba(99,102,241,0.4);
  width: 15px; height: 15px;
  cursor: pointer;
}
.simple-login-extra .form-check-input:checked {
  background-color: #6366f1;
  border-color: #6366f1;
}
.simple-login-extra .form-check-label { color: rgba(255,255,255,0.5); cursor: pointer; }
.link-forgot {
  color: rgba(255,255,255,0.4);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color .2s;
}
.link-forgot:hover { color: #a78bfa; }

/* ---- Primary Button ---- */
.btn-login,
.btn-register,
.btn-submit,
.btn-gradient-blue {
  width: 100%;
  padding: 13px;
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
  border: none;
  border-radius: 12px;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 20px rgba(99,102,241,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-login:hover,
.btn-register:hover,
.btn-submit:hover,
.btn-gradient-blue:hover {
  background: linear-gradient(135deg, #4f46e5 0%, #3730a3 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(99,102,241,0.45);
  color: #fff;
}

.btn-login:active,
.btn-register:active,
.btn-submit:active,
.btn-gradient-blue:active {
  transform: translateY(0);
}

/* Spinner inside button */
.btn-loading .fa-spinner { animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---- Divider ---- */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0;
  color: rgba(255,255,255,0.2);
  font-size: 0.78rem;
}
.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,0.08);
}

/* ---- Footer Links ---- */
.auth-footer {
  text-align: center;
  margin-top: 1.4rem;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.35);
}
.auth-footer a {
  color: #a78bfa;
  font-weight: 600;
  text-decoration: none;
  transition: color .2s;
}
.auth-footer a:hover { color: #06b6d4; text-decoration: underline; }

/* ---- Info note at bottom ---- */
.seller-info,
.auth-note {
  margin-top: 1rem;
  padding: 10px 14px;
  background: rgba(99,102,241,0.07);
  border: 1px solid rgba(99,102,241,0.15);
  border-radius: 10px;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.3);
  text-align: center;
}
.seller-info i,
.auth-note i { color: #6366f1; }

/* ---- Particle Dots (decorative) ---- */
.auth-particle {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  animation: particleFade 6s ease-in-out infinite;
}
@keyframes particleFade {
  0%   { opacity: 0; transform: translateY(0) scale(1); }
  50%  { opacity: 0.6; }
  100% { opacity: 0; transform: translateY(-80px) scale(0.5); }
}

/* ---- Responsive ---- */
@media (max-width: 480px) {
  .auth-card { padding: 1.6rem 1.2rem; border-radius: 18px; }
  .auth-card h2 { font-size: 1.3rem; }
}

/* ============================================================
   VALIDATION ERRORS — jQuery Validate
   ============================================================ */

/* Error label text */
label.error {
  display: block;
  color: #f87171 !important;      /* merah terang agar kontras di dark bg */
  font-size: 0.78rem !important;
  font-weight: 500 !important;
  margin-top: 5px !important;
  margin-bottom: 0 !important;
  padding-left: 4px;
  letter-spacing: 0.2px;
}

label.error::before {
  content: '⚠ ';
  font-size: 0.75rem;
}

/* Input invalid state */
input.is-invalid,
input.error {
  border-color: rgba(239, 68, 68, 0.7) !important;
  background: rgba(239, 68, 68, 0.05) !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15) !important;
  color: #fff !important;
}

input.is-invalid:focus,
input.error:focus {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.25) !important;
}

/* Input valid state (opsional) */
input.is-valid,
input.valid {
  border-color: rgba(16, 185, 129, 0.5) !important;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.12) !important;
}

/* Override Bootstrap invalid-feedback */
.invalid-feedback {
  color: #f87171 !important;
  font-size: 0.78rem;
  font-weight: 500;
  margin-top: 5px;
}
