/* ============================================================
   LOGIN BASIC V5 — light theme, image collage left, clean form right
   Inspired by: split-panel card layout with stat boxes in the grid
   ============================================================ */

body { margin: 0; }

.login-v5-page,
.login-v5-page * { box-sizing: border-box; }

.login-v5-page {
  min-height: 100vh;
  width: 100%;
  background: #e8f4ef;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  font-family: 'Plus Jakarta Sans', 'Segoe UI', system-ui, sans-serif;
}

/* ===== Outer card ===== */
.login-v5-shell {
  width: 100%;
  max-width: 1100px;
  background: #ffffff;
  border-radius: 20px;
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.10),
    0 4px 16px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  display: flex;
  min-height: 580px;
  animation: v5FadeScale 0.45s ease-out both;
}

@keyframes v5FadeScale {
  from { opacity: 0; transform: scale(0.96); }
  to   { opacity: 1; transform: scale(1); }
}

/* ===== LEFT — Image collage ===== */
.login-v5-collage {
  width: 58%;
  background: #f1f5f9;
  padding: 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr 1fr;
  gap: 10px;
  animation: v5FadeIn 0.6s ease-out 0.05s both;
}

@keyframes v5FadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.login-v5-collage__cell {
  border-radius: 12px;
  overflow: hidden;
}

.login-v5-collage__cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0.92;
}

/* Stat boxes */
.login-v5-stat {
  border-radius: 12px;
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #ffffff;
}

.login-v5-stat--orange {
  background: #f97316;
  animation: v5SlideUp 0.6s ease-out 0.25s both;
}

.login-v5-stat--green {
  background: #22c55e;
  animation: v5SlideUp 0.6s ease-out 0.45s both;
}

@keyframes v5SlideUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

.login-v5-stat__number {
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.04em;
  margin: 0 0 8px;
}

.login-v5-stat__text {
  font-size: 11.5px;
  line-height: 1.45;
  opacity: 0.92;
  margin: 0;
}

/* ===== RIGHT — Form panel ===== */
.login-v5-form-panel {
  width: 42%;
  padding: clamp(32px, 5vw, 52px) clamp(24px, 5vw, 48px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #111827;
  animation: v5SlideInRight 0.55s ease-out 0.1s both;
}

@keyframes v5SlideInRight {
  from { opacity: 0; transform: translateX(18px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* Brand badge */
.login-v5-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 2rem;
}

.login-v5-brand__mark {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, #3b82f6, #1e40af);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.35);
  flex-shrink: 0;
  overflow: hidden;
}

.login-v5-brand__mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 6px;
}

.login-v5-brand__name {
  font-size: 15px;
  font-weight: 800;
  color: #111827;
  margin: 0;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.login-v5-brand__sub {
  font-size: 11px;
  color: #6b7280;
  margin: 3px 0 0;
  letter-spacing: 0.01em;
}

/* Heading */
.login-v5-heading h2 {
  font-size: clamp(20px, 2.5vw, 24px);
  font-weight: 800;
  color: #111827;
  letter-spacing: -0.03em;
  margin: 0 0 4px;
}

.login-v5-heading h2 .accent {
  color: #2563eb;
}

.login-v5-heading p {
  font-size: 13px;
  color: #6b7280;
  margin: 0 0 1.75rem;
  line-height: 1.55;
}

/* ===== Fields ===== */
.login-v5-field {
  margin-bottom: 16px;
}

.login-v5-field label {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  color: #374151;
  margin-bottom: 6px;
}

.login-v5-input-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f9fafb;
  border: 1.5px solid #e5e7eb;
  border-radius: 10px;
  padding: 0 14px;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease;
}

.login-v5-input-wrap:hover {
  border-color: #d1d5db;
  background: #f3f4f6;
}

.login-v5-input-wrap:focus-within {
  border-color: #3b82f6;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.login-v5-input-icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #9ca3af;
  flex-shrink: 0;
  transition: color 0.15s ease;
}

.login-v5-input-icon svg {
  width: 16px;
  height: 16px;
  display: block;
}

.login-v5-input-wrap:focus-within .login-v5-input-icon {
  color: #3b82f6;
}

.login-v5-input-wrap input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
  color: #111827;
  font-size: 14px;
  font-weight: 500;
  padding: 11px 0;
  font-family: inherit;
  caret-color: #3b82f6;
}

.login-v5-input-wrap input::placeholder {
  color: #9ca3af;
  font-weight: 400;
}

/* Chrome autofill — keep light bg visible */
.login-v5-input-wrap input:-webkit-autofill,
.login-v5-input-wrap input:-webkit-autofill:hover,
.login-v5-input-wrap input:-webkit-autofill:focus,
.login-v5-input-wrap input:-webkit-autofill:active {
  -webkit-text-fill-color: #111827 !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  transition: background-color 600000s ease-in-out 0s, color 600000s ease-in-out 0s;
}

.login-v5-password-toggle {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 0;
  background: transparent;
  color: #9ca3af;
  cursor: pointer;
  border-radius: 7px;
  padding: 0;
  margin-left: 2px;
  transition: color 0.15s ease, background 0.15s ease;
}

.login-v5-password-toggle:hover {
  color: #374151;
  background: #f3f4f6;
}

.login-v5-password-toggle svg {
  width: 16px;
  height: 16px;
  display: block;
}

/* ===== Captcha ===== */
.login-v5-captcha {
  margin-bottom: 16px;
}

.login-v5-captcha #turnstile-container {
  width: 100%;
}

.login-v5-captcha #turnstile-container iframe {
  width: 100% !important;
}

.login-v5-alert {
  background: rgba(249, 115, 22, 0.08);
  border: 1px solid rgba(249, 115, 22, 0.25);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 12.5px;
  color: #ea580c;
  line-height: 1.4;
  margin-bottom: 16px;
}

/* ===== Submit button ===== */
.login-v5-submit {
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  border: 0;
  cursor: pointer;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -0.01em;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  margin-bottom: 12px;
}

.login-v5-submit:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(37, 99, 235, 0.45);
}

.login-v5-submit:active:not(:disabled) {
  transform: translateY(0);
}

.login-v5-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.login-v5-submit .spinner-border {
  width: 14px;
  height: 14px;
  border-width: 2px;
}

.login-v5-helptext {
  text-align: center;
  font-size: 12px;
  color: #9ca3af;
  margin: 4px 0 0;
  letter-spacing: 0.01em;
}

/* ===== Responsive ===== */
@media (max-width: 991.98px) {
  .login-v5-shell {
    flex-direction: column;
    max-width: 480px;
    min-height: auto;
  }

  .login-v5-collage {
    width: 100%;
    height: 260px;
  }

  .login-v5-form-panel {
    width: 100%;
    padding: 32px 28px;
  }
}

@media (max-width: 575.98px) {
  .login-v5-page {
    padding: 1rem;
    align-items: flex-start;
  }

  .login-v5-collage {
    height: 200px;
    padding: 12px;
    gap: 8px;
  }

  .login-v5-stat__number {
    font-size: 22px;
  }

  .login-v5-stat__text {
    font-size: 10.5px;
  }

  .login-v5-shell {
    border-radius: 16px;
  }

  .login-v5-form-panel {
    padding: 28px 20px;
  }
}
