/* =====================================================
   Vidzers — Login / Register / Reset Password
   Split dark/light panel layout
   ===================================================== */

/* ---- Dark Branding Panel ---- */
.vz-auth-dark {
  background: linear-gradient(135deg, var(--vz-dark) 0%, var(--vz-navy) 55%, var(--vz-purple) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 2rem;
  min-height: 100vh;
  position: relative;
  overflow: hidden;
}
.vz-auth-dark__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
}
.vz-auth-dark__blob--red {
  width: 350px; height: 350px;
  background: rgba(246, 56, 84, 0.15);
  top: -10%; left: -10%;
}
.vz-auth-dark__blob--orange {
  width: 250px; height: 250px;
  background: rgba(255, 107, 53, 0.1);
  bottom: -5%; right: -5%;
}
.vz-auth-dark__content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 380px;
}
.vz-auth-dark__content > * {
  animation: vz-auth-levitate 6.9s ease-in-out infinite;
  will-change: transform;
}
.vz-auth-dark__content > *:nth-child(2) {
  animation-delay: 0.24s;
}
.vz-auth-dark__content > *:nth-child(3) {
  animation-delay: 0.48s;
}
.vz-auth-dark__logo {
  width: 140px;
  margin-bottom: 2rem;
}
.vz-auth-dark__title {
  font-size: 1.6rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}
.vz-auth-dark__sub {
  font-size: 0.92rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.6;
}
.vz-auth-dark__illustration {
  max-width: 100%;
  margin-top: 2.5rem;
  border-radius: var(--vz-radius-lg);
  opacity: 0.9;
}
.vz-auth-dark__illustration--login {
  max-width: 90%;
}
.vz-auth-dark__illustration--register {
  max-width: 108%;
}
@keyframes vz-auth-levitate {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, -10px, 0); }
}

/* ---- Light Form Panel ---- */
.vz-auth-light {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3rem;
  min-height: 100vh;
  background: #fff;
}
.vz-auth-form {
  max-width: 420px;
  width: 100%;
  margin: 0 auto;
}
.vz-auth-form--login,
.vz-auth-form--register,
.vz-auth-form--reset {
  background: #fff;
  border-radius: 26px;
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.12);
  border: 1px solid rgba(226, 232, 240, 0.9);
}
.vz-auth-form--login {
  max-width: 460px;
  padding: 2.35rem 2.2rem 2.1rem;
}
.vz-auth-form--register {
  max-width: 452px;
  padding: 1.95rem 1.8rem 1.8rem;
  border-radius: 24px;
}
.vz-auth-form--reset {
  max-width: 460px;
  padding: 2.2rem 2.05rem 2rem;
}
.vz-auth-form h2 {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--vz-gray-900);
  margin-bottom: 0.5rem;
}
.vz-auth-form .vz-auth-subtitle {
  font-size: 0.92rem;
  color: var(--vz-gray-600);
  margin-bottom: 2rem;
}
.vz-auth-form--login h2,
.vz-auth-form--login .vz-auth-subtitle,
.vz-auth-form--register h2,
.vz-auth-form--register .vz-auth-subtitle,
.vz-auth-form--reset h2,
.vz-auth-form--reset .vz-auth-subtitle {
  text-align: center;
}
.vz-auth-form--login h2 {
  margin-bottom: 0.4rem;
}
.vz-auth-form--login .vz-auth-subtitle {
  margin-bottom: 2rem;
}
.vz-auth-form--register h2 {
  font-size: 1.45rem;
  margin-bottom: 0.4rem;
}
.vz-auth-form--register .vz-auth-subtitle {
  font-size: 0.86rem;
  margin-bottom: 1.75rem;
}
.vz-auth-form--reset h2 {
  margin-bottom: 0.4rem;
}
.vz-auth-form--reset .vz-auth-subtitle {
  margin-bottom: 1.6rem;
}

/* Form field styling */
.vz-auth-form .form-control {
  border: 1.5px solid var(--vz-gray-100);
  border-radius: var(--vz-radius-md);
  padding: 12px 16px;
  font-size: 0.9rem;
  transition: border-color 0.2s;
}
.vz-auth-form .form-control:focus {
  border-color: var(--vz-red);
  box-shadow: 0 0 0 3px rgba(246, 56, 84, 0.1);
}
.vz-auth-form--login .form-control,
.vz-auth-form--register .form-control,
.vz-auth-form--reset .form-control {
  border-color: #e8edf3;
  background: #f7f9fc;
  border-radius: 14px;
  padding: 14px 16px;
  font-size: 0.95rem;
}
.vz-auth-form--register .form-control {
  border-radius: 12px;
  padding: 11px 13px;
  font-size: 0.9rem;
}
.vz-auth-form--login .form-control::placeholder,
.vz-auth-form--register .form-control::placeholder,
.vz-auth-form--reset .form-control::placeholder {
  color: #7a869a;
}
.vz-auth-form label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--vz-gray-700);
  margin-bottom: 0.4rem;
}
.vz-auth-form--login label,
.vz-auth-form--register label,
.vz-auth-form--reset label {
  font-size: 0.82rem;
  margin-bottom: 0.6rem;
}
.vz-auth-form--register label {
  font-size: 0.78rem;
  margin-bottom: 0.45rem;
}
.vz-auth-form .form-select {
  border: 1.5px solid var(--vz-gray-100);
  border-radius: var(--vz-radius-md);
  padding: 12px 16px;
  font-size: 0.9rem;
}
.vz-auth-form--register .form-select {
  border-color: #e8edf3;
  background: #f7f9fc;
  border-radius: 12px;
  padding: 11px 13px;
  font-size: 0.9rem;
}
.vz-auth-form .form-select:focus {
  border-color: var(--vz-red);
  box-shadow: 0 0 0 3px rgba(246, 56, 84, 0.1);
}

/* Submit button */
.vz-auth-submit {
  width: 100%;
  padding: 13px;
  border-radius: var(--vz-radius);
  background: linear-gradient(90deg, var(--vz-red), var(--vz-orange));
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}
.vz-auth-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(246, 56, 84, 0.35);
}
.vz-auth-submit--success {
  background: linear-gradient(90deg, #0f8f57, #26b36f);
}
.vz-auth-submit--success:hover {
  box-shadow: 0 6px 20px rgba(15, 143, 87, 0.3);
}
.vz-auth-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}
.vz-auth-form--login .vz-auth-submit,
.vz-auth-form--register .vz-auth-submit,
.vz-auth-form--reset .vz-auth-submit {
  padding: 15px 20px;
  font-size: 0.98rem;
  box-shadow: 0 12px 28px rgba(246, 56, 84, 0.24);
}
.vz-auth-form--register .vz-auth-submit {
  padding: 12px 18px;
  font-size: 0.92rem;
}

/* Toggle password eye */
.toggle-password {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  color: var(--vz-gray-400);
  font-size: 18px;
}
.toggle-password:hover { color: var(--vz-red); }
input[type="password"]::-ms-reveal,
input[type="password"]::-webkit-password-toggle-button {
  display: none;
  appearance: none;
  -webkit-appearance: none;
}

/* Links */
.vz-auth-links {
  text-align: center;
  margin-top: 1.5rem;
}
.vz-auth-links p {
  font-size: 0.88rem;
  color: var(--vz-gray-600);
  margin-bottom: 0.5rem;
}
.vz-auth-links a {
  color: var(--vz-red);
  font-weight: 600;
  text-decoration: none;
}
.vz-auth-links a:hover { text-decoration: underline; }
.vz-auth-form--login .vz-auth-links,
.vz-auth-form--register .vz-auth-links,
.vz-auth-form--reset .vz-auth-links {
  margin-top: 1.2rem;
}
.vz-auth-form--login .vz-auth-links p,
.vz-auth-form--register .vz-auth-links p,
.vz-auth-form--reset .vz-auth-links p {
  font-size: 0.95rem;
  margin-bottom: 0.35rem;
}
.vz-auth-form--reset [role="alert"] {
  margin-bottom: 1rem;
  border-radius: 14px;
}
.vz-auth-form--register .vz-auth-links p {
  font-size: 0.88rem;
}

/* Success box (register) */
.vz-auth-success {
  text-align: center;
  padding: 2rem;
}
.vz-auth-form--register .vz-auth-success {
  padding: 0.5rem 0;
}
.vz-auth-success h5 {
  color: #10843f;
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

/* ---- Responsive: hide dark panel on mobile ---- */
@media (max-width: 767px) {
  .vz-auth-dark { display: none; }
  .vz-auth-light { min-height: auto; padding: 2rem 1.25rem; }
  .vz-auth-form--login,
  .vz-auth-form--register,
  .vz-auth-form--reset {
    max-width: 100%;
    padding: 2.25rem 1.6rem 2rem;
    border-radius: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .vz-auth-dark__content > * {
    animation: none !important;
  }
}

/* ---- Extracted inline/auth helpers ---- */
@keyframes vz-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.vz-spinner {
  display: inline-block;
  animation: vz-spin 1s linear infinite;
}

.vz-auth-loading {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}
.vz-auth-loading--spaced {
  margin: 1rem 0;
}
.vz-auth-btn-full {
  width: 100%;
}
.vz-auth-row-min-vh {
  min-height: 100vh;
}
.vz-auth-otp-card {
  position: relative;
  margin-bottom: 1.5rem;
  padding: 1.25rem 1.25rem 1.1rem;
  border-radius: 20px;
  border: 1px solid rgba(246, 56, 84, 0.12);
  background: linear-gradient(180deg, rgba(254, 242, 242, 0.86), rgba(255, 255, 255, 0.98));
  box-shadow: 0 18px 42px rgba(17, 24, 39, 0.08);
}
.vz-auth-form--register .vz-auth-otp-card {
  margin-bottom: 1.2rem;
  padding: 1rem 1rem 0.95rem;
  border-radius: 18px;
}
.vz-auth-otp-card__badge {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(246, 56, 84, 0.14), rgba(255, 107, 53, 0.14));
  color: var(--vz-red);
  font-size: 1.1rem;
  margin-bottom: 0.9rem;
}
.vz-auth-form--register .vz-auth-otp-card__badge {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  font-size: 1rem;
  margin-bottom: 0.7rem;
}
.vz-auth-otp-card__title {
  margin: 0 0 0.3rem;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--vz-gray-900);
}
.vz-auth-form--register .vz-auth-otp-card__title {
  font-size: 1.08rem;
}
.vz-auth-otp-card__subtitle {
  margin: 0;
  font-size: 0.92rem;
  color: var(--vz-gray-600);
  line-height: 1.6;
}
.vz-auth-form--register .vz-auth-otp-card__subtitle {
  font-size: 0.86rem;
}
.vz-auth-otp-card__email {
  color: var(--vz-gray-900);
  font-weight: 700;
  word-break: break-word;
}
.vz-auth-otp-card__edit {
  margin-top: 0.9rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--vz-red);
  font-size: 0.9rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}
.vz-auth-form--register .vz-auth-otp-card__edit {
  margin-top: 0.75rem;
  font-size: 0.84rem;
}
.vz-auth-otp-card__edit:hover {
  color: var(--vz-orange);
}
.vz-auth-otp-resend__copy {
  margin-bottom: 0.7rem;
  color: var(--vz-gray-600);
  font-size: 0.95rem;
}
.vz-auth-form--register .vz-auth-otp-resend__copy {
  font-size: 0.88rem;
}
.vz-auth-otp-resend__btn {
  border: 0;
  background: transparent;
  color: var(--vz-gray-400);
  font-size: 0.98rem;
  font-weight: 700;
  padding: 0;
}
.vz-auth-form--register .vz-auth-otp-resend__btn {
  font-size: 0.9rem;
}
.vz-auth-otp-resend__btn--ready {
  color: var(--vz-red);
}
.vz-auth-otp-resend__btn--ready:hover {
  color: var(--vz-orange);
}

.vz-auth-reset-form {
  margin-top: 0;
}
.vz-auth-reset-form fieldset,
.vz-auth-reset-form fieldset .form-card {
  background: transparent;
  border: 0;
  width: 100%;
  margin: 0;
  padding: 0;
}
.vz-auth-reset-form fieldset {
  padding-top: 0.65rem;
}
.vz-auth-reset-form fieldset .form-card {
  padding: 0.35rem 0;
}
.vz-auth-reset-form input.form-control {
  border: 1.5px solid #e8edf3;
  border-radius: 14px;
  background: #f7f9fc;
  padding: 14px 16px;
  margin: 0 0 1rem;
  font-size: 0.95rem;
  letter-spacing: normal;
}
.vz-auth-reset-form input.form-control:focus {
  border-color: var(--vz-red);
  box-shadow: 0 0 0 3px rgba(246, 56, 84, 0.1);
  font-weight: 400;
}
.vz-auth-reset-form .vz-auth-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  margin-top: 0.25rem;
}
