/* ========== Auth Page (Login / Signup) ========== */

.wk-auth {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: calc(100vh - 80px);
  background: #f9fafb;
}

/* ===== LEFT — decorative ===== */
.wk-auth-left {
  position: relative;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 48px;
  background: linear-gradient(135deg, #6d28d9, #4338ca, #1d4ed8);
  color: #fff;
  overflow: hidden;
}

@media (min-width: 992px) {
  .wk-auth-left {
    display: flex;
  }
}

.wk-auth-left-blobs {
  position: absolute;
  inset: 0;
  opacity: 0.2;
  pointer-events: none;
}

.wk-auth-left-blobs .blob {
  position: absolute;
  width: 384px;
  height: 384px;
  border-radius: 50%;
  filter: blur(80px);
}

.blob-a { top: 0; left: 0; background: #fff; }
.blob-b { bottom: 0; right: 0; background: #93c5fd; }

.wk-auth-left-grid {
  position: absolute;
  inset: 0;
  opacity: 0.05;
  background-image: radial-gradient(circle, #fff 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}

.wk-auth-left-inner {
  position: relative;
  text-align: center;
  max-width: 420px;
}

.wk-auth-logo-badge {
  width: 80px;
  height: 80px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  font-weight: 900;
  font-size: 1.75rem;
  color: #fff;
}

.wk-auth-left-inner h2 {
  font-size: 2.25rem;
  font-weight: 900;
  line-height: 1.25;
  margin: 0 0 16px;
}

.wk-auth-left-inner > p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1rem;
  margin: 0 0 32px;
  line-height: 1.6;
}

.wk-auth-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}

.wk-auth-stat {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  padding: 12px;
}

.wk-auth-stat b {
  display: block;
  font-size: 1.25rem;
  font-weight: 900;
  color: #fff;
}

.wk-auth-stat span {
  display: block;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.75rem;
  margin-top: 2px;
}

.wk-auth-avatars {
  display: flex;
  justify-content: center;
  margin-bottom: 8px;
}

.wk-auth-avatars img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.4);
  object-fit: cover;
  margin-left: -8px;
}

.wk-auth-avatars img:first-child {
  margin-left: 0;
}

.wk-auth-avatar-more {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6875rem;
  font-weight: 700;
  margin-left: -8px;
}

.wk-auth-joined {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.75rem;
  margin: 8px 0 0;
}

/* ===== RIGHT — form ===== */
.wk-auth-right {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 20px;
  background: #f9fafb;
}

.wk-auth-card-wrap {
  width: 100%;
  max-width: 440px;
}

.wk-auth-card {
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.08);
  border: 1px solid #f3f4f6;
  padding: 28px;
}

@media (min-width: 576px) {
  .wk-auth-card {
    padding: 32px;
  }
}

.wk-auth-heading {
  font-size: 1.5rem;
  font-weight: 900;
  color: #111827;
  margin: 0 0 4px;
}

.wk-auth-subheading {
  color: #6b7280;
  font-size: 0.875rem;
  margin: 0 0 24px;
}

.wk-auth-banner {
  font-size: 0.875rem;
  padding: 10px 14px;
  border-radius: 12px;
  margin: 0 0 16px;
}
.wk-auth-banner.ok { background: #dcfce7; color: #166534; }
.wk-auth-banner.err { background: #fef2f2; color: #b91c1c; }

/* Social buttons */
.wk-auth-social-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 20px;
}

.wk-auth-social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 6px;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
  font-size: 0.875rem;
  font-weight: 500;
  color: #374151;
  cursor: pointer;
  text-decoration: none;
  transition: border-color 0.15s, background 0.15s;
  position: relative;
}

.wk-auth-social-btn:hover {
  border-color: #d8b4fe;
  background: #faf5ff;
  color: #374151;
  text-decoration: none;
}

.wk-auth-social-btn span {
  display: none;
}

@media (min-width: 400px) {
  .wk-auth-social-btn span {
    display: inline;
  }
}

.wk-auth-social-btn .wk-auth-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid #c4b5fd;
  border-top-color: transparent;
  border-radius: 50%;
  animation: wk-auth-spin 0.7s linear infinite;
}

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

/* Divider */
.wk-auth-divider {
  position: relative;
  text-align: center;
  margin-bottom: 20px;
}

.wk-auth-divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  border-top: 1px solid #e5e7eb;
}

.wk-auth-divider span {
  position: relative;
  background: #fff;
  padding: 0 12px;
  font-size: 0.75rem;
  color: #9ca3af;
  font-weight: 500;
}

/* Method tabs */
.wk-auth-method-tabs {
  display: flex;
  gap: 4px;
  padding: 4px;
  background: #f3f4f6;
  border-radius: 12px;
  margin-bottom: 16px;
}

.wk-auth-method-tabs button {
  flex: 1;
  padding: 8px;
  border-radius: 8px;
  border: none;
  background: transparent;
  font-size: 0.75rem;
  font-weight: 600;
  color: #6b7280;
  cursor: pointer;
  transition: all 0.15s;
  font-family: var(--wk-font, 'Inter', sans-serif);
}

.wk-auth-method-tabs button.active {
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
  color: #7c3aed;
}

/* Form */
.wk-auth-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.wk-auth-field {
  position: relative;
}

.wk-auth-field.d-none {
  display: none;
}

.wk-auth-field > svg,
.wk-auth-field > i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
  pointer-events: none;
  z-index: 1;
}

.wk-auth-field input {
  width: 100%;
  padding: 12px 44px 12px 44px;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  font-size: 0.875rem;
  outline: none;
  transition: border-color 0.15s;
  font-family: var(--wk-font, 'Inter', sans-serif);
  background: #fff;
}

.wk-auth-field input:focus {
  border-color: #c084fc;
}

.wk-auth-field.has-eye input {
  padding-right: 44px;
}

.wk-auth-eye {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #9ca3af;
  cursor: pointer;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  pointer-events: auto;
}

.wk-auth-eye svg {
  position: static !important;
  left: auto !important;
  top: auto !important;
  transform: none !important;
  pointer-events: none !important;
}

.wk-auth-eye:hover {
  color: #4b5563;
}

.wk-auth-otp-send {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(90deg, #9333ea, #2563eb);
  color: #fff;
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: box-shadow 0.15s;
  font-family: var(--wk-font, 'Inter', sans-serif);
}

.wk-auth-otp-send:hover {
  box-shadow: 0 10px 20px rgba(147, 51, 234, 0.25);
}

.wk-auth-otp-send.d-none {
  display: none;
}

.wk-auth-otp-wrap.d-none {
  display: none;
}

.wk-auth-otp-hint {
  text-align: center;
  font-size: 0.75rem;
  color: #6b7280;
  margin: 0 0 12px;
}

.wk-auth-otp-boxes {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 16px;
}

.wk-auth-otp-boxes input {
  width: 40px;
  height: 48px;
  text-align: center;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1.125rem;
  outline: none;
  transition: border-color 0.15s;
}

.wk-auth-otp-boxes input:focus {
  border-color: #c084fc;
}

.wk-auth-change-number {
  display: block;
  width: 100%;
  text-align: center;
  background: none;
  border: none;
  color: #9333ea;
  font-size: 0.75rem;
  margin-top: 8px;
  cursor: pointer;
}

.wk-auth-change-number:hover {
  text-decoration: underline;
}

.wk-auth-row-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
}

.wk-auth-row-between.d-none {
  display: none;
}

.wk-auth-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  color: #4b5563;
}

.wk-auth-checkbox input {
  width: 14px;
  height: 14px;
  accent-color: #9333ea;
}

.wk-auth-link {
  color: #9333ea;
  font-weight: 500;
}

.wk-auth-link:hover {
  color: #7e22ce;
}

.wk-auth-terms {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.75rem;
  color: #6b7280;
  cursor: pointer;
}

.wk-auth-terms.d-none {
  display: none;
}

.wk-auth-terms input {
  width: 14px;
  height: 14px;
  margin-top: 2px;
  accent-color: #9333ea;
  flex-shrink: 0;
}

.wk-auth-terms a {
  color: #9333ea;
  text-decoration: underline;
}

.wk-auth-submit-btn {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(90deg, #9333ea, #2563eb);
  color: #fff;
  font-weight: 700;
  font-size: 0.875rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform 0.15s, box-shadow 0.15s;
  font-family: var(--wk-font, 'Inter', sans-serif);
}

.wk-auth-submit-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(147, 51, 234, 0.3);
}

.wk-auth-toggle-text {
  text-align: center;
  font-size: 0.875rem;
  color: #6b7280;
  margin: 20px 0 0;
}

.wk-auth-toggle-text a {
  color: #9333ea;
  font-weight: 600;
}

.wk-auth-toggle-text a:hover {
  color: #7e22ce;
}

.wk-auth-footnote {
  text-align: center;
  font-size: 0.75rem;
  color: #9ca3af;
  margin: 20px 0 0;
}

.wk-auth-footnote a {
  color: #9ca3af;
  text-decoration: underline;
}

.wk-auth-footnote a:hover {
  color: #6b7280;
}

/* Responsive */
@media (max-width: 991.98px) {
  .wk-auth {
    grid-template-columns: 1fr;
    min-height: auto;
  }
}

@media (max-width: 575.98px) {
  .wk-auth-right {
    padding: 24px 16px;
  }

  .wk-auth-otp-boxes input {
    width: 36px;
    height: 44px;
  }
}
