/* Auth page - Vue-style design (login/signup) */
* { box-sizing: border-box; }
.auth-page-vue { margin: 0; padding: 0; font-family: 'DM Sans', -apple-system, sans-serif; }

.auth-wrapper {
  display: flex;
  height: 100vh;
  min-height: 100vh;
  overflow: hidden;
}

/* ── LEFT PANEL ── */
.left-panel {
  position: relative;
  width: 42%;
  background: linear-gradient(145deg, #ff6b1a 0%, #e8540a 45%, #c94100 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 40px;
}

.left-content {
  position: relative;
  z-index: 2;
  color: white;
  max-width: 380px;
}

.logo-area {
  text-align: center;
  margin-bottom: 48px;
}

.logo-link {
  display: block;
  margin-bottom: 20px;
}

.logo-area .logo-img {
  max-width: 200px;
  width: 100%;
  height: auto;
  filter: brightness(0) invert(1);
  opacity: 0.95;
  display: block;
  margin: 0 auto;
}

.brand-tagline {
  font-size: 18px;
  font-weight: 500;
  opacity: 0.92;
  line-height: 1.5;
  margin: 20px 0 0 0;
}

.brand-tagline span {
  font-weight: 700;
  font-size: 20px;
}

.features {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(255,255,255,0.12);
  border-radius: 14px;
  padding: 16px 20px;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.18);
  transition: transform 0.2s;
}

.feature-item:hover { transform: translateX(4px); }

.feature-icon {
  font-size: 28px;
  width: 44px;
  text-align: center;
  flex-shrink: 0;
}

.feature-item strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 2px;
}

.feature-item p {
  font-size: 13px;
  opacity: 0.8;
  margin: 0;
}

.deco-circle {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
}
.deco-1 { width: 380px; height: 380px; bottom: -120px; right: -120px; }
.deco-2 { width: 200px; height: 200px; top: -60px; left: -60px; }

/* ── RIGHT PANEL ── */
.right-panel {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8f9fb;
  padding: 24px 20px;
  overflow: hidden;
  position: relative;
}

.auth-header-mobile {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: 16px 20px;
  background: #fff;
  box-shadow: 0 1px 0 #eee;
  align-items: center;
  justify-content: space-between;
  z-index: 10;
}

.auth-back {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #f5f5f5;
  color: #E8521A;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.auth-logo-mobile img {
  height: 36px;
  width: auto;
}

.auth-card {
  background: white;
  border-radius: 24px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.08);
  width: 100%;
  max-width: 480px;
  max-height: calc(100vh - 48px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  position: relative;
}

/* ── TABS ── */
.tabs.nav-tabs {
  display: flex;
  border-bottom: 1px solid #f0f0f0;
  list-style: none;
  margin: 0;
  padding: 0;
}

.tabs .nav-item {
  flex: 1;
}

.tabs .nav-item .nav-link {
  display: block;
}

.tab-btn {
  flex: 1;
  padding: 18px;
  font-size: 15px;
  font-weight: 600;
  border: none;
  background: transparent;
  color: #9ca3af;
  cursor: pointer;
  transition: all 0.25s;
  position: relative;
  text-align: center;
  text-decoration: none;
  display: block;
}

.tab-btn:hover {
  color: #6b7280;
}

.tab-btn.active {
  color: #e8540a;
  background: #fff8f5;
}

.tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #ff6b1a, #e8540a);
  border-radius: 3px 3px 0 0;
}

.tab-content {
  display: block;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
}

.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
}

/* ── FORM SECTION ── */
.form-section {
  padding: 24px 28px 28px;
}

.form-header {
  text-align: center;
  margin-bottom: 24px;
}

.form-header h2 {
  font-size: 24px;
  font-weight: 800;
  color: #111827;
  margin-bottom: 6px;
}

.form-header p {
  color: #6b7280;
  font-size: 14px;
  margin: 0;
}

/* ── METHOD TOGGLE ── */
.method-toggle {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  background: #f3f4f6;
  padding: 5px;
  border-radius: 12px;
}

.method-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px;
  border: none;
  background: transparent;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 600;
  color: #6b7280;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}

.method-btn:hover {
  color: #374151;
}

.method-btn.active-radio {
  background: linear-gradient(180deg, #ffffff 0%, #fff4ec 100%);
  color: #7c2d12;
  font-weight: 700;
  box-shadow:
    0 0 0 2px rgba(255, 108, 54, 0.45),
    0 4px 16px rgba(255, 108, 54, 0.22),
    0 2px 6px rgba(0, 0, 0, 0.06);
}
.method-btn.active-radio i {
  color: #ff6c36;
}

.method-btn i {
  font-size: 16px;
}

/* ── FIELDS ── */
.form-fields { display: flex; flex-direction: column; gap: 16px; }

.field-group {
  margin-bottom: 0;
}

.field-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 7px;
}

.field-group .req { color: #ef4444; }

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-wrapper .form-control {
  width: 100%;
  padding: 12px 44px 12px 16px;
  border: 1.5px solid #e5e7eb;
  border-radius: 12px;
  font-size: 14px;
  color: #111827;
  background: #fafafa;
  transition: all 0.2s;
  outline: none;
  height: 48px;
}

.input-wrapper .form-control:focus {
  border-color: #e8540a;
  background: white;
  box-shadow: 0 0 0 4px rgba(232,84,10,0.08);
}

.field-group .form-control {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid #e5e7eb;
  border-radius: 12px;
  font-size: 14px;
  color: #111827;
  background: #fafafa;
  transition: all 0.2s;
  outline: none;
  height: 48px;
}

.field-group .form-control:focus {
  border-color: #e8540a;
  background: white;
  box-shadow: 0 0 0 4px rgba(232,84,10,0.08);
}

.form-icon.toggle-pass {
  position: absolute;
  right: 14px;
  background: none;
  border: none;
  cursor: pointer;
  color: #9ca3af;
  padding: 0;
  display: flex;
  align-items: center;
}

.form-icon.toggle-pass:hover { color: #e8540a; }

.phone-input-wrap {
  border: 1.5px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
  background: #fafafa;
  transition: all 0.2s;
}

.phone-input-wrap:focus-within {
  border-color: #e8540a;
  background: white;
  box-shadow: 0 0 0 4px rgba(232,84,10,0.08);
}

.phone-input-wrap .form-control {
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
}

.phone-input-wrap .iti { width: 100% !important; display: block; }
.phone-input-wrap .iti__tel-input { padding: 12px 16px; height: 48px; border: none; font-size: 14px; }
.iti--allow-dropdown { width: 100% !important; }

.form-alert {
  font-size: 12px;
  color: #888;
  margin-top: 4px;
}

.validation-message {
  font-size: 13px;
  color: #b91c1c;
  margin-top: 4px;
}

/* Form Options */
.form-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.remember-me {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 14px;
  color: #374151;
}

.remember-me input[type="checkbox"] { display: none; }

.checkmark {
  width: 18px;
  height: 18px;
  border: 2px solid #d1d5db;
  border-radius: 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  flex-shrink: 0;
}

input[type="checkbox"]:checked + .checkmark {
  background: #e8540a;
  border-color: #e8540a;
}

input[type="checkbox"]:checked + .checkmark::after {
  content: '✓';
  color: white;
  font-size: 11px;
  font-weight: 700;
}

.forgot-link {
  font-size: 13px;
  color: #e8540a;
  text-decoration: none;
  font-weight: 600;
}

.forgot-link:hover { text-decoration: underline; }

/* Primary Button */
.primary-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px;
  background: linear-gradient(135deg, #ff6b1a, #e8540a);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 15px rgba(232,84,10,0.35);
  letter-spacing: 0.3px;
  font-family: inherit;
}

.primary-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(232,84,10,0.45);
  color: white;
}

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

/* Divider */
.divider {
  position: relative;
  text-align: center;
  margin: 18px 0;
}

.divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: #e5e7eb;
}

.divider span {
  position: relative;
  background: white;
  padding: 0 12px;
  font-size: 13px;
  color: #9ca3af;
}

/* Google Button */
.google-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px;
  background: white;
  border: 1.5px solid #e5e7eb;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  color: #374151;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}

.google-btn:hover {
  background: #f9fafb;
  border-color: #d1d5db;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  color: #111;
}

.auth-direction {
  text-align: center;
  margin-top: 24px;
  font-size: 14px;
  color: #6b7280;
}

.auth-direction a {
  color: #e8540a;
  font-weight: 600;
  text-decoration: none;
}

.auth-direction a:hover { text-decoration: underline; }

/* Agreements */
.agreements {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 16px;
  background: #fafafa;
  border-radius: 12px;
  border: 1px solid #eee;
}

.agree-item {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 13px;
  color: #374151;
}

.agree-item input[type="checkbox"] { display: none; }

.agree-item a {
  color: #e8540a;
  text-decoration: none;
  font-weight: 600;
}

.agree-item a:hover { text-decoration: underline; }

.captcha-wrap {
  margin-top: 8px;
}

.captcha-wrap .control-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 8px;
}

/* Password + Confirm on one line (Sign Up) */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.alert-danger {
  border-radius: 12px;
  border: 1px solid #fecaca;
  background: #fef2f2;
  color: #b91c1c;
  font-size: 14px;
}

/* Responsive */
@media (max-width: 900px) {
  .left-panel { display: none; }
  .right-panel {
    background: linear-gradient(145deg, #ff6b1a, #e8540a);
    padding-top: 70px;
    flex-direction: column;
    overflow-y: auto;
    justify-content: flex-start;
    padding-bottom: 24px;
  }
  .right-panel.register-visible .auth-captcha-sidebar {
    margin-left: 0;
    margin-top: 16px;
    padding-right: 0;
  }
  .auth-card {
    max-height: none;
  }
  .auth-card { box-shadow: 0 20px 60px rgba(0,0,0,0.2); }
  .auth-header-mobile { display: flex; }
}

@media (max-width: 520px) {
  .form-section { padding: 24px 20px 28px; }
  .auth-card { border-radius: 20px; }
  .two-col { grid-template-columns: 1fr; }
}

/* reCAPTCHA Floating Badge */
.recaptcha-badge {
  position: absolute;
  bottom: 18px;
  left: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  transform: translateX(calc(-100% + 34px)); /* only tab peeks out */
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  filter: drop-shadow(0 4px 14px rgba(0,0,0,0.18));
  cursor: default;
}

.recaptcha-badge:hover {
  transform: translateX(0); /* fully slides in on hover */
}

.badge-tab {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: 0 10px 10px 0;
  padding: 10px 8px 10px 4px;
  border: 1px solid #dde3ee;
  border-left: none;
  flex-shrink: 0;
  width: 34px;
  height: 54px;
  order: 2;
}

.badge-content {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1px solid #dde3ee;
  border-right: none;
  border-radius: 10px 0 0 10px;
  padding: 10px 14px;
  height: 54px;
  order: 1;
  white-space: nowrap;
}

.badge-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.badge-text span {
  font-size: 11px;
  color: #6b7280;
  line-height: 1.3;
}

.badge-text strong {
  color: #111827;
  font-weight: 700;
}

.badge-links {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
}

.badge-links a {
  color: #4A90D9;
  text-decoration: none;
  font-weight: 500;
}

.badge-links a:hover {
  text-decoration: underline;
}

.badge-links .dot {
  color: #9ca3af;
}
