/**
 * Valley Tours — Login
 * Trips & travel. Your journey begins here.
 * Palette: #0080FF (bright blue), #003366 (navy), #FFFFFF — from logo.
 */

@import url("https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Outfit:wght@500;600;700&display=swap");

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

:root {
  --vt-bg: #f0f7ff;
  --vt-bg-deep: #e8f2ff;
  --vt-card: #ffffff;
  --vt-brand: #0080FF;
  --vt-brand-light: #3399ff;
  --vt-brand-dark: #003366;
  --vt-navy: #003366;
  --vt-navy-soft: #004080;
  --vt-sky: #e6f2ff;
  --vt-cream: #f8fbff;
  --vt-text: #003366;
  --vt-text-soft: #004080;
  --vt-muted: #5c8fd6;
  --vt-border: rgba(0, 128, 255, 0.2);
  --vt-glow: rgba(0, 128, 255, 0.28);
  --vt-shadow: rgba(0, 51, 102, 0.1);
  --vt-error: #c53030;
  --vt-brand-side-bg: linear-gradient(165deg, #e6f2ff 0%, #cce5ff 35%, #b3d9ff 70%, #99ccff 100%);
  --vt-brand-side-accent: rgba(0, 128, 255, 0.12);
}

@keyframes vt-fade-up {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes vt-card-in {
  from { opacity: 0; transform: scale(0.97) translateY(16px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes vt-shine {
  0% { left: -100%; }
  100% { left: 100%; }
}

@keyframes vt-float {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(0, -10px); }
}

@keyframes vt-float-slow {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  33% { transform: translate(4px, -6px) rotate(2deg); }
  66% { transform: translate(-3px, 4px) rotate(-1deg); }
}

@keyframes vt-glow-pulse {
  0%, 100% { box-shadow: 0 32px 80px rgba(0, 51, 102, 0.08), 0 0 0 1px var(--vt-border); }
  50% { box-shadow: 0 40px 100px rgba(0, 128, 255, 0.18), 0 0 0 1px var(--vt-border); }
}

@keyframes vt-orb-float {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.5; }
  25% { transform: translate(3%, -4%) scale(1.05); opacity: 0.65; }
  50% { transform: translate(-2%, 2%) scale(0.95); opacity: 0.55; }
  75% { transform: translate(2%, 3%) scale(1.02); opacity: 0.6; }
}

@keyframes vt-bg-drift {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.96; }
}

@keyframes vt-cloud-float {
  0%, 100% { transform: translateY(0) translateX(0); opacity: 0.85; }
  50% { transform: translateY(-8px) translateX(4px); opacity: 1; }
}

@keyframes vt-horizon-shine {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.7; }
}

/* Base */
body.vt-auth {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  position: relative;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: linear-gradient(160deg, #e6f2ff 0%, #cce5ff 25%, #f0f7ff 50%, #d6ebff 75%, #e8f2ff 100%);
}

body.vt-auth::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 100% 80% at 0% 0%, rgba(0, 128, 255, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse 80% 100% at 100% 0%, rgba(0, 51, 102, 0.08) 0%, transparent 48%),
    radial-gradient(ellipse 90% 70% at 100% 100%, rgba(0, 128, 255, 0.08) 0%, transparent 45%),
    radial-gradient(ellipse 70% 90% at 0% 100%, rgba(0, 51, 102, 0.06) 0%, transparent 45%),
    radial-gradient(ellipse 60% 60% at 50% 50%, rgba(255, 255, 255, 0.9) 0%, transparent 70%);
  pointer-events: none;
  animation: vt-bg-drift 14s ease-in-out infinite;
}

/* Subtle grain */
.vt-grain {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: radial-gradient(circle at center, rgba(0, 128, 255, 0.04) 1.5px, transparent 1.5px);
  background-size: 24px 24px;
  opacity: 0.95;
}

.vt-grain::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.7' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
}

/* Blue orbs — sky / travel feel */
.vt-bg-orbs {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.vt-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  animation: vt-orb-float 20s ease-in-out infinite;
}

.vt-orb:nth-child(1) {
  width: 360px; height: 360px;
  top: -10%; left: -6%;
  background: radial-gradient(circle, rgba(0, 128, 255, 0.2) 0%, rgba(0, 128, 255, 0.04) 50%, transparent 70%);
  animation-duration: 22s; animation-delay: 0s;
}

.vt-orb:nth-child(2) {
  width: 300px; height: 300px;
  top: 40%; right: -8%;
  background: radial-gradient(circle, rgba(0, 51, 102, 0.15) 0%, rgba(0, 51, 102, 0.02) 50%, transparent 70%);
  animation-duration: 18s; animation-delay: 3s;
}

.vt-orb:nth-child(3) {
  width: 280px; height: 280px;
  bottom: -6%; left: 25%;
  background: radial-gradient(circle, rgba(0, 128, 255, 0.12) 0%, transparent 60%);
  animation-duration: 25s; animation-delay: 6s;
}

.vt-orb:nth-child(4) {
  width: 240px; height: 240px;
  top: 55%; left: -5%;
  background: radial-gradient(circle, rgba(0, 51, 102, 0.1) 0%, transparent 60%);
  animation-duration: 20s; animation-delay: 2s;
}

.vt-orb:nth-child(5) {
  width: 320px; height: 320px;
  top: 10%; right: 15%;
  background: radial-gradient(circle, rgba(0, 128, 255, 0.1) 0%, transparent 55%);
  animation-duration: 24s; animation-delay: 4s;
}

/* Travel shapes — abstract peaks / clouds */
.vt-shapes {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.vt-shape {
  position: absolute;
  border: 1px solid rgba(0, 128, 255, 0.18);
  border-radius: 50%;
  opacity: 0.45;
  animation: vt-float 14s ease-in-out infinite;
}

.vt-shape:nth-child(1) { width: 100px; height: 100px; top: 12%; left: 10%; border-radius: 50% 0 50% 50%; animation-delay: 0s; animation-duration: 12s; }
.vt-shape:nth-child(2) { width: 60px; height: 60px; top: 78%; right: 10%; border-radius: 0 50% 50% 50%; animation-delay: 2.5s; animation-duration: 16s; }
.vt-shape:nth-child(3) { width: 80px; height: 80px; bottom: 18%; left: 8%; animation-delay: 5s; animation: vt-float-slow 18s ease-in-out infinite; }
.vt-shape:nth-child(4) { width: 70px; height: 70px; top: 38%; right: 14%; border-radius: 50% 50% 0 50%; animation-delay: 1s; animation-duration: 13s; }
.vt-shape:nth-child(5) { width: 90px; height: 90px; top: 52%; left: 4%; border-radius: 50% 50% 50% 0; animation-delay: 3s; animation-duration: 15s; }
.vt-shape:nth-child(6) { width: 50px; height: 50px; top: 22%; right: 6%; animation-delay: 4s; animation: vt-float-slow 14s ease-in-out infinite; }

/* Main card */
.vt-login-wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1000px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--vt-card);
  border-radius: 28px;
  overflow: hidden;
  min-height: 600px;
  box-shadow:
    0 32px 80px rgba(0, 51, 102, 0.1),
    0 0 0 1px var(--vt-border);
  animation: vt-card-in 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards, vt-glow-pulse 8s ease-in-out 1s infinite;
}

/* Left: Brand — gradient echoing logo (bright blue → navy) */
.vt-brand-side {
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #0080FF 0%, #0066cc 40%, #004d99 70%, #003366 100%);
}

.vt-brand-side::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 90% 70% at 30% 20%, rgba(255, 255, 255, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse 60% 80% at 80% 90%, rgba(0, 128, 255, 0.2) 0%, transparent 50%),
    linear-gradient(105deg, transparent 0%, rgba(255, 255, 255, 0.06) 50%, transparent 100%);
  background-size: 100% 100%, 100% 100%, 200% 100%;
  z-index: 0;
}

.vt-brand-side::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: repeating-linear-gradient(
    105deg,
    transparent,
    transparent 2px,
    rgba(255, 255, 255, 0.04) 2px,
    rgba(255, 255, 255, 0.04) 3px
  );
  z-index: 0;
  pointer-events: none;
}

.vt-brand-content {
  position: relative;
  z-index: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.vt-brand-content .logo-link {
  display: inline-block;
  margin-bottom: 0;
  animation: vt-fade-up 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.vt-brand-content .logo-link:hover {
  transform: scale(1.05);
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.2));
}

.vt-brand-content .logo-link img {
  max-width: 200px;
  width: 100%;
  height: auto;
  filter: brightness(1.05) contrast(1.02);
}

/* Trip visual — circle with logo (like logo badge) */
.vt-brand-visual {
  width: 100%;
  max-width: 200px;
  margin-top: 28px;
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  animation: vt-cloud-float 8s ease-in-out infinite;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  background: linear-gradient(180deg, rgba(255,255,255,0.2) 0%, rgba(0,0,0,0.15) 100%);
  border: 3px solid rgba(255, 255, 255, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
}

.vt-brand-visual img {
  width: 72%;
  height: 72%;
  object-fit: contain;
  opacity: 1;
}

.vt-brand-tagline {
  font-family: 'Outfit', sans-serif;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.95);
  margin-top: 24px;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  animation: vt-fade-up 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.15s both;
}

.vt-brand-subtitle {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.8);
  margin-top: 8px;
  font-weight: 500;
  max-width: 260px;
  line-height: 1.45;
  animation: vt-fade-up 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.2s both;
}

.vt-brand-side .vt-corner {
  position: absolute;
  bottom: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  border-right: 2px solid rgba(255, 255, 255, 0.5);
  border-bottom: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 0 0 12px 0;
  opacity: 0.8;
}

/* Right: Form */
.vt-form-side {
  padding: 48px 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 40%, #f0f7ff 100%);
  border-left: 1px solid var(--vt-border);
  position: relative;
}

.vt-form-side::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background:
    radial-gradient(ellipse 80% 60% at 100% 0%, rgba(230, 242, 255, 0.95) 0%, transparent 55%),
    radial-gradient(ellipse 50% 80% at 0% 100%, rgba(0, 128, 255, 0.06) 0%, transparent 50%);
  pointer-events: none;
}

.vt-form-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 360px;
  margin: 0 auto;
}

.vt-form-header {
  margin-bottom: 36px;
}

.vt-form-title {
  font-family: 'Outfit', sans-serif;
  font-size: 32px;
  font-weight: 700;
  color: var(--vt-text);
  margin-bottom: 10px;
  letter-spacing: -0.03em;
  line-height: 1.2;
  animation: vt-fade-up 0.55s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.vt-form-subtitle {
  font-size: 15px;
  color: var(--vt-muted);
  font-weight: 500;
  letter-spacing: 0.01em;
  animation: vt-fade-up 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.06s both;
}

/* Input groups */
.vt-input-group {
  margin-bottom: 22px;
  animation: vt-fade-up 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.vt-form-inner form .vt-input-group:nth-of-type(2) { animation-delay: 0.1s; }
.vt-form-inner form .vt-input-group:nth-of-type(3) { animation-delay: 0.16s; }

.vt-input-group label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: var(--vt-text-soft);
  margin-bottom: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.vt-input-wrap {
  position: relative;
  border-radius: 16px;
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s ease, border-color 0.25s ease;
}

.vt-input-wrap:focus-within {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px var(--vt-shadow), 0 0 0 1px var(--vt-border);
}

.vt-input-wrap .icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--vt-muted);
  font-size: 20px;
  pointer-events: none;
  transition: color 0.25s ease, transform 0.25s ease;
}

.vt-input-wrap:focus-within .icon {
  color: var(--vt-brand);
  transform: translateY(-50%) scale(1.05);
}

.vt-input-wrap input {
  width: 100%;
  padding: 16px 18px 16px 50px;
  background: var(--vt-cream);
  border: 2px solid var(--vt-border);
  border-radius: 16px;
  color: var(--vt-text);
  font-size: 15px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 500;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  outline: none;
}

.vt-input-wrap input::placeholder {
  color: var(--vt-muted);
  font-weight: 400;
}

.vt-input-wrap input:focus {
  border-color: var(--vt-brand);
  background: #fff;
  box-shadow: 0 0 0 4px var(--vt-glow);
}

.vt-input-wrap input.is-invalid {
  border-color: var(--vt-error);
}

.vt-toggle-password {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--vt-muted);
  cursor: pointer;
  font-size: 18px;
  transition: color 0.2s ease;
}

.vt-toggle-password:hover {
  color: var(--vt-brand);
}

.vt-input-wrap.has-toggle input {
  padding-right: 48px;
}

.vt-invalid-feedback {
  color: var(--vt-error);
  font-size: 12px;
  margin-top: 8px;
  font-weight: 500;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

/* Remember me */
.vt-remember {
  margin-bottom: 26px;
  animation: vt-fade-up 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.28s both;
}

.vt-remember label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--vt-text-soft);
  cursor: pointer;
  user-select: none;
  font-weight: 500;
  font-family: 'Plus Jakarta Sans', sans-serif;
  transition: color 0.2s ease;
}

.vt-remember label:hover {
  color: var(--vt-text);
}

.vt-remember input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--vt-brand);
  cursor: pointer;
  border-radius: 5px;
}

/* Submit button */
.vt-submit {
  width: 100%;
  padding: 18px 24px;
  background: linear-gradient(135deg, #0080FF 0%, #0066cc 100%);
  color: #fff;
  border: none;
  border-radius: 16px;
  font-size: 15px;
  font-weight: 700;
  font-family: 'Outfit', sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s ease, filter 0.3s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 32px rgba(0, 128, 255, 0.4);
  animation: vt-fade-up 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.32s both;
}

.vt-submit::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: vt-shine 4s ease-in-out infinite;
  pointer-events: none;
}

.vt-submit:hover {
  transform: translateY(-3px) scale(1.01);
  box-shadow: 0 16px 44px rgba(0, 128, 255, 0.5);
  filter: brightness(1.05);
}

.vt-submit:hover::before {
  animation: vt-shine 1.2s ease-in-out;
}

.vt-submit:active {
  transform: translateY(-1px) scale(1);
}

/* Forgot password & footer */
.vt-form-footer {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  animation: vt-fade-up 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.35s both;
}

.vt-forgot-link {
  font-size: 14px;
  color: var(--vt-brand);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
}

.vt-forgot-link:hover {
  color: var(--vt-brand-dark);
  text-decoration: underline;
}

.vt-register-link {
  font-size: 14px;
  color: var(--vt-muted);
}

.vt-register-link a {
  color: var(--vt-brand);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
}

.vt-register-link a:hover {
  color: var(--vt-brand-dark);
  text-decoration: underline;
}

/* Alert */
.vt-alert {
  padding: 14px 18px;
  border-radius: 14px;
  margin-bottom: 22px;
  font-size: 14px;
  font-weight: 500;
  font-family: 'Plus Jakarta Sans', sans-serif;
  background: rgba(197, 48, 48, 0.08);
  border: 1px solid rgba(197, 48, 48, 0.2);
  color: var(--vt-error);
  animation: vt-fade-up 0.45s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.vt-alert.vt-alert-success {
  background: rgba(0, 128, 255, 0.08);
  border-color: rgba(0, 128, 255, 0.25);
  color: var(--vt-brand-dark);
}

/* Back to home */
.vt-back-home {
  position: absolute;
  top: 24px;
  left: 24px;
  z-index: 2;
  color: var(--vt-muted);
  font-size: 14px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color 0.2s ease;
}

.vt-back-home:hover {
  color: var(--vt-brand);
}

/* Responsive */
@media (max-width: 900px) {
  .vt-login-wrap {
    grid-template-columns: 1fr;
    max-width: 440px;
    min-height: auto;
    border-radius: 20px;
  }

  .vt-brand-side {
    padding: 36px 28px;
    min-height: 200px;
  }

  .vt-brand-content .logo-link img {
    max-width: 140px;
  }

  .vt-brand-visual {
    max-width: 160px;
    margin-top: 20px;
  }

  .vt-brand-tagline {
    font-size: 11px;
    margin-top: 16px;
  }

  .vt-form-side {
    padding: 36px 28px;
    border-left: none;
    border-top: 1px solid var(--vt-border);
  }

  .vt-form-title {
    font-size: 24px;
  }

  .vt-brand-side .vt-corner {
    display: none;
  }
}

@media (max-width: 480px) {
  body.vt-auth {
    padding: 16px;
  }

  .vt-brand-visual {
    max-width: 120px;
  }

  .vt-form-title {
    font-size: 22px;
  }

  .vt-brand-side,
  .vt-form-side {
    padding: 28px 20px;
  }

  .vt-shape {
    opacity: 0.3;
  }

  .vt-form-footer {
    flex-direction: column;
    align-items: stretch;
  }
}
