/* =====================================================
   Vidzers Marketer — Auth Pages
   Styles for login, register, reset-password
   ===================================================== */

.vz-auth-wrapper {
  min-height: calc(100vh - 64px);
  display: flex;
}

/* Dark brand panel — LEFT side, desktop only */
.vz-auth-brand {
  background: var(--vz-grad-dark);
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 56px 44px;
  flex: 0 0 42%;
  position: relative;
  overflow: hidden;
}
.vz-auth-brand::before {
  content: '';
  position: absolute; top: 12%; left: 8%;
  width: 280px; height: 280px; border-radius: 50%;
  background: rgba(246, 56, 84, 0.13); filter: blur(55px);
}
.vz-auth-brand::after {
  content: '';
  position: absolute; bottom: 12%; right: 6%;
  width: 260px; height: 260px; border-radius: 50%;
  background: rgba(109, 40, 217, 0.1); filter: blur(50px);
}
@media (min-width: 992px) { .vz-auth-brand { display: flex; } }

/* Benefit list */
.vz-benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 18px;
  text-align: left;
}
.vz-benefit-icon {
  width: 34px; height: 34px; border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; flex-shrink: 0; margin-top: 1px;
}
.vz-benefit-text strong { display: block; color: #fff; font-size: 14px; font-weight: 600; }
.vz-benefit-text span { color: rgba(255, 255, 255, 0.6); font-size: 13px; line-height: 1.5; }

/* Form panel — RIGHT side */
.vz-auth-form-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 20px;
  background: #f3f4f6;
  overflow-y: auto;
}

/* White card */
.vz-auth-card {
  background: #fff;
  border-radius: 16px;
  padding: 40px 36px;
  width: 100%;
  max-width: 460px;
  box-shadow: 0 4px 28px rgba(0, 0, 0, 0.08);
}
.vz-auth-card .form-control {
  border-radius: 8px;
  border: 1.5px solid #e5e7eb;
  padding: 10px 14px;
  font-size: 14px;
  height: auto;
  transition: border-color 0.2s, box-shadow 0.2s;
  color: #111827;
}
.vz-auth-card .form-control:focus {
  border-color: #F63854;
  box-shadow: 0 0 0 3px rgba(246, 56, 84, 0.08);
  outline: none;
}
.vz-auth-card .mb-3 { margin-bottom: 14px; }
.vz-auth-card label {
  font-size: 13px; font-weight: 500;
  color: #374151; margin-bottom: 5px; display: block;
}

/* Auth inline links */
.vz-auth-link { color: #F63854; font-weight: 500; text-decoration: none; }
.vz-auth-link:hover { text-decoration: underline; color: #FF6B35; }

/* Login carousel (BS5) */
.carousel-login-card { padding: 11px 0; }

/* Card sizes */
.card-login { max-width: 25rem; }
.card-register { max-width: 40rem; }
.registerMessage { font-size: 1.2em; line-height: 1.7em; }

/* Floating label form */
.form-label-group { position: relative; }
.form-label-group > input, .form-label-group > label {
  padding: var(--input-padding-y, 0.75rem) var(--input-padding-x, 0.75rem);
  height: auto;
}
.form-label-group > label {
  position: absolute;
  top: 0; left: 0;
  display: block; width: 100%;
  margin-bottom: 0;
  line-height: 1.5;
  color: #495057;
  border: 1px solid transparent;
  border-radius: 0.25rem;
  transition: all 0.1s ease-in-out;
}
.form-label-group input::placeholder { color: transparent; }
.form-label-group input:not(:placeholder-shown) {
  padding-top: calc(var(--input-padding-y, 0.75rem) + var(--input-padding-y, 0.75rem) * (2 / 3));
  padding-bottom: calc(var(--input-padding-y, 0.75rem) / 3);
}
.form-label-group input:not(:placeholder-shown) ~ label {
  padding-top: calc(var(--input-padding-y, 0.75rem) / 3);
  padding-bottom: calc(var(--input-padding-y, 0.75rem) / 3);
  font-size: 12px;
  color: #777;
}

/* Password visibility toggle (used on reset-password, login, register) */
.toggle-password {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  color: var(--vz-gray-600);
  font-size: 18px;
}
.toggle-password:hover { color: var(--vz-red); }
input.pe-5 { padding-right: 40px; }

/* Hide browser's default password reveal icon so our custom one is the only control */
input[type="password"]::-ms-reveal,
input[type="password"]::-webkit-contacts-auto-fill-button,
input[type="password"]::-webkit-credentials-auto-fill-button,
input[type="password"]::-webkit-password-toggle-button {
  display: none;
  appearance: none;
  -webkit-appearance: none;
}

/* Auth logo sizing (replaces style="width: 55%") */
.vz-auth-logo { width: 55%; }

/* Legacy login/register layout helpers */
.login-main-body { background: #f3f4f6; }
.login-main-wrapper { min-height: 100vh; }
.full-height { min-height: 100vh; }

/* login.html page-specific */
body.vz-page-login { background: #f3f4f6; min-height: 100vh; margin: 0; }
body.vz-page-login #app1,
body.vz-page-register #app1 {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
body.vz-page-login .vz-auth-wrapper,
body.vz-page-register .vz-auth-wrapper {
  flex: 1 0 auto;
}
.vz-page-login .modal-dialog {
  min-height: calc(100vh - 60px);
  display: flex; flex-direction: column;
  justify-content: center; overflow: auto;
}
@media (min-width: 300px) and (max-width: 600px) {
  .vz-page-login #login { display: flex; align-items: center; }
}

/* Brand panel inner content */
.vz-auth-brand-inner { position: relative; z-index: 1; }
.vz-auth-brand-img { max-width: 300px; border-radius: 14px; opacity: 0.9; }
.vz-auth-brand-title {
  color: #fff;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  margin-bottom: 12px;
}
.vz-auth-brand-text {
  color: rgba(255,255,255,0.62);
  font-size: 14px;
  line-height: 1.75;
  max-width: 300px;
  margin: 0 auto;
}

/* Welcome header (inside auth card) */
.vz-auth-welcome-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  color: var(--vz-gray-900);
  margin-bottom: 4px;
}
.vz-auth-welcome-sub { font-size: 14px; color: #6b7280; margin-bottom: 0; }

/* Form card state helpers */
.vz-auth-card-center { text-align: center; }
.vz-auth-card-hint { font-size: 13px; color: #6b7280; margin-bottom: 8px; }
.vz-auth-card-hint:last-child { margin-bottom: 0; }

/* Modal inline state messages */
.vz-auth-modal-form { text-align: center; }

/* Cookie consent modal buttons */
.vz-cookie-btn { width: 100%; }

/* ── register.html page-specific ── */
body.vz-page-register { background: #f3f4f6; min-height: 100vh; margin: 0; }

/* Password eye icon */
.vz-eye {
  position: absolute; right: 12px; top: 50%;
  transform: translateY(-50%); cursor: pointer;
  color: #9ca3af; font-size: 15px; transition: color 0.2s;
}
.vz-eye:hover { color: var(--vz-red); }

/* File upload area */
.vz-file-wrap {
  border: 1.5px dashed #e5e7eb; border-radius: 8px;
  padding: 14px 16px; background: #fafafa; cursor: pointer;
  transition: border-color 0.2s; display: flex; align-items: center; gap: 10px;
  position: relative;
}
.vz-file-upload-row {
  display: flex;
  align-items: stretch;
  gap: 10px;
}
.vz-file-upload-row .vz-file-wrap {
  flex: 1;
}
.vz-file-wrap:hover { border-color: var(--vz-red); }
.vz-file-wrap input[type="file"] {
  position: absolute; opacity: 0; width: 100%; height: 100%;
  top: 0; left: 0; cursor: pointer;
}
.vz-file-icon { font-size: 20px; color: #9ca3af; flex-shrink: 0; }
.vz-file-body { flex: 1; min-width: 0; }
.vz-file-title { font-size: 13px; font-weight: 500; color: var(--vz-gray-700); }
.vz-file-sub { font-size: 12px; color: #9ca3af; }
.vz-logo-preview {
  width: 88px;
  height: 72px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #f9fafb;
  color: #9ca3af;
  font-size: 11px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.vz-logo-preview.is-selected {
  border-color: #86efac;
  background: #f0fdf4;
}
.vz-logo-preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
}
.vz-file-selected {
  margin-top: 7px;
  font-size: 12px;
  color: #16a34a;
  display: flex;
  align-items: center;
  gap: 6px;
}

@media (max-width: 575px) {
  .vz-file-upload-row {
    flex-direction: column;
  }
  .vz-logo-preview {
    width: 100%;
    height: 72px;
  }
}

/* OTP verify button */
.vz-btn-verify {
  width: 100%; padding: 12px;
  background: linear-gradient(to right, #10b981, #059669);
  color: #fff; border: none; border-radius: 9999px;
  font-weight: 600; font-size: 15px; cursor: pointer;
  transition: box-shadow 0.25s ease, transform 0.2s ease;
  display: block; text-align: center;
}
.vz-btn-verify:hover {
  box-shadow: 0 8px 20px rgba(16,185,129,0.28);
  transform: translateY(-1px); color: #fff;
}

/* OTP screen */
.vz-otp-icon {
  width: 64px; height: 64px; border-radius: 50%;
  background: linear-gradient(135deg, rgba(246,56,84,0.1), rgba(255,107,53,0.1));
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; color: var(--vz-red); margin: 0 auto 16px;
}
.vz-otp-input {
  text-align: center; font-size: 22px !important;
  font-weight: 700 !important; letter-spacing: 10px;
}
.vz-otp-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700; color: var(--vz-gray-900); margin-bottom: 6px;
}
.vz-otp-sub { font-size: 13px; color: #6b7280; margin-bottom: 0; }
.vz-otp-email { color: var(--vz-gray-700); }
.vz-otp-wait { color: #6b7280; font-size: 14px; }
.vz-otp-alert { text-align: center; font-size: 13px; font-weight: 500; }
.vz-otp-label { display: block; }
.vz-otp-resend-hint { font-size: 13px; color: #6b7280; margin-bottom: 6px; }
.vz-otp-resend-btn {
  font-size: 13px; background: none; border: none; padding: 0;
  color: var(--vz-red); font-weight: 500;
}
.vz-otp-resend-btn:disabled { color: #9ca3af; cursor: not-allowed; font-weight: 400; }
.vz-otp-countdown { color: #9ca3af; }

/* Divider with label */
.vz-divider {
  display: flex; align-items: center; gap: 12px;
  margin: 18px 0 14px; color: #9ca3af; font-size: 12px;
}
.vz-divider::before, .vz-divider::after {
  content: ''; flex: 1; height: 1px; background: #e5e7eb;
}
.vz-divider .vz-auth-link { font-size: 12px; }

.vz-btn-submit-compact { width: auto; padding: 10px 28px; }

/* Vue transitions */
.fade-enter-active, .fade-leave-active { transition: opacity 0.3s; }
.fade-enter, .fade-leave-to { opacity: 0; }

/* Register brand panel */
.vz-register-brand-inner { position: relative; z-index: 1; width: 100%; max-width: 320px; }
.vz-register-brand-title {
  color: #fff; font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800; font-size: 24px; line-height: 1.3; margin-bottom: 8px;
}
.vz-register-brand-lead {
  color: rgba(255,255,255,0.55); font-size: 14px;
  line-height: 1.7; margin-bottom: 32px;
}
.vz-icon-green  { color: #4ade80; }
.vz-icon-orange { color: #fb923c; }
.vz-icon-blue   { color: #60a5fa; }

/* Register card header */
.vz-register-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700; color: var(--vz-gray-900); margin-bottom: 3px;
}
.vz-register-sub { font-size: 13px; color: #6b7280; margin-bottom: 0; }

/* Form helpers */
.vz-form-error-box {
  background: #fff5f5; border: 1px solid #fecaca; border-radius: 8px;
  padding: 10px 14px; margin-bottom: 14px;
  font-size: 13px; color: #dc2626;
  display: flex; align-items: center; gap: 8px;
}
.vz-pos-relative { position: relative; }
.vz-label-hint { font-size: 11px; color: #9ca3af; font-weight: 400; }

/* Responsive */
@media (min-width: 300px) and (max-width: 750px) {
  .vz-auth-card { padding: 28px 20px 20px; }
}

/* =====================================================
   Auth — Modernization Additions
   ===================================================== */

/* Right panel — subtle gradient background */
.vz-auth-right-gradient {
  background: linear-gradient(145deg, #ffffff 0%, #f8f7ff 60%, #f3f0ff 100%);
}

/* Input focus ring matching brand */
.vz-auth-card input:focus {
  border-color: var(--vz-red) !important;
  box-shadow: 0 0 0 3px var(--vz-red-muted) !important;
  outline: none;
}

/* Benefit item accent */
.vz-auth-brand .benefit-item {
  border-left: 2px solid rgba(246, 56, 84, 0.3);
  padding-left: 10px;
  margin-bottom: 10px;
}

/* =====================================================
   OTP Screen — Inline Email Edit
   ===================================================== */

.vz-otp-email-display {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 4px;
  margin-bottom: 2px;
}

.vz-otp-edit-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: 1px solid #e5e7eb;
  border-radius: 9999px;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 500;
  color: #9ca3af;
  cursor: pointer;
  transition: color 0.18s, border-color 0.18s, background 0.18s;
  line-height: 1.4;
  white-space: nowrap;
}
.vz-otp-edit-btn:hover {
  color: var(--vz-red);
  border-color: rgba(246, 56, 84, 0.35);
  background: var(--vz-red-muted);
}
.vz-otp-edit-btn i { font-size: 10px; }

.vz-otp-email-edit-wrap {
  margin-top: 10px;
  margin-bottom: 4px;
  animation: otp-edit-in 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes otp-edit-in {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.vz-otp-email-input {
  font-size: 14px !important;
  text-align: center !important;
  letter-spacing: 0 !important;
  font-weight: 400 !important;
  margin-bottom: 10px;
  background: var(--vz-gray-50);
}

.vz-otp-edit-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.vz-otp-update-btn {
  display: inline-flex;
  align-items: center;
  background: linear-gradient(to right, #10b981, #059669);
  color: #fff;
  border: none;
  border-radius: 9999px;
  padding: 9px 20px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: box-shadow 0.22s ease, transform 0.18s ease;
  white-space: nowrap;
}
.vz-otp-update-btn:hover {
  box-shadow: 0 6px 18px rgba(16, 185, 129, 0.32);
  transform: translateY(-1px);
  color: #fff;
}

.vz-otp-cancel-link {
  background: none;
  border: none;
  color: #9ca3af;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  padding: 9px 8px;
  transition: color 0.18s;
  border-radius: 6px;
}
.vz-otp-cancel-link:hover { color: var(--vz-gray-600); }
