/* ================================================
   PREMIUM-AUTH.CSS — VeroForm Bank Auth Pages
   Split-screen login / signup layout
   ================================================ */

* { box-sizing: border-box; }

body {
  font-family: 'Manrope', sans-serif;
  background: #F0F4FF;
  margin: 0;
  padding: 0;
  min-height: 100vh;
}

/* ---- SPLIT SCREEN WRAPPER ---- */

.vf-auth-panel {
  display: grid;
  grid-template-columns: 42% 58%;
  min-height: 100vh;
}

/* ---- LEFT PANEL ---- */

.vf-auth-left {
  background: linear-gradient(145deg, #1340B0 0%, #1B55E2 55%, #2563EB 100%);
  padding: 52px 56px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
}

/* Decorative blobs */
.vf-auth-left::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 360px; height: 360px;
  border-radius: 50%;
  background: rgba(255,255,255,0.07);
  pointer-events: none;
}
.vf-auth-left::after {
  content: '';
  position: absolute;
  bottom: -80px; left: -60px;
  width: 280px; height: 280px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  pointer-events: none;
}

/* Brand */
.vf-auth-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  z-index: 1;
}
.vf-auth-brand img {
  width: 40px; height: 40px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}
.vf-auth-brand-name {
  color: #ffffff;
  font-family: 'DM Sans', sans-serif;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* Main content */
.vf-auth-left-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 1;
  padding: 40px 0;
}

.vf-auth-tagline h2 {
  color: #ffffff;
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(24px, 3vw, 38px);
  font-weight: 800;
  line-height: 1.22;
  margin-bottom: 16px;
  letter-spacing: -0.025em;
}

.vf-auth-tagline p {
  color: rgba(255,255,255,0.76);
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 36px;
}

/* Feature list */
.vf-auth-features {
  list-style: none;
  padding: 0;
  margin: 0 0 40px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.vf-auth-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255,255,255,0.90);
  font-size: 15px;
  font-weight: 500;
}
.vf-auth-feature-check {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px; height: 22px;
  min-width: 22px;
  border-radius: 50%;
  background: rgba(255,255,255,0.20);
}
.vf-auth-feature-check i { color: #ffffff; font-size: 10px; }

/* Stats row */
.vf-auth-stats {
  display: flex;
  gap: 28px;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.14);
  position: relative;
  z-index: 1;
}
.vf-auth-stat-number {
  font-family: 'DM Sans', sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1;
}
.vf-auth-stat-label {
  font-size: 12px;
  color: rgba(255,255,255,0.60);
  margin-top: 3px;
}

/* ---- RIGHT PANEL ---- */

.vf-auth-right {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 48px 40px;
  background: #F8FAFF;
  overflow-y: auto;
  min-height: 100vh;
}

.vf-auth-back {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #64748B;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  margin-bottom: 28px;
  align-self: flex-start;
  transition: color 0.2s;
}
.vf-auth-back:hover { color: #1B55E2; text-decoration: none; }
.vf-auth-back i { font-size: 11px; }

/* ---- FORM CARD ---- */

.vf-auth-form-card {
  width: 100%;
  max-width: 500px;
  background: #ffffff;
  border-radius: 20px;
  padding: 40px 48px;
  box-shadow: 0 4px 40px rgba(27,85,226,0.10);
  border: 1px solid #E8EFFE;
}

.vf-auth-card-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
}
.vf-auth-card-logo img { width: 36px; height: 36px; object-fit: contain; }
.vf-auth-card-logo span {
  font-family: 'DM Sans', sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: #1B55E2;
  letter-spacing: -0.02em;
}

.vf-auth-card-title {
  font-family: 'DM Sans', sans-serif;
  font-size: 26px;
  font-weight: 800;
  color: #0F172A;
  margin: 0 0 6px;
  letter-spacing: -0.02em;
}
.vf-auth-card-sub {
  font-size: 14px;
  color: #64748B;
  margin: 0 0 28px;
  line-height: 1.5;
}

/* Status messages */
.vf-auth-alert {
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 14px;
  margin-bottom: 20px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.5;
}
.vf-auth-alert.success {
  background: rgba(5,150,105,0.08);
  border: 1px solid rgba(5,150,105,0.25);
  color: #065f46;
}
.vf-auth-alert.error {
  background: rgba(207,23,60,0.08);
  border: 1px solid rgba(207,23,60,0.25);
  color: #9b1c2e;
}
.vf-auth-alert.warning {
  background: rgba(217,119,6,0.08);
  border: 1px solid rgba(217,119,6,0.25);
  color: #92400e;
}

/* ---- FORM ELEMENTS ---- */

.vf-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.vf-form-group { margin-bottom: 16px; }

.vf-form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #334155;
  margin-bottom: 6px;
}

.vf-form-input {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid #E2E8F0;
  border-radius: 8px;
  background: #ffffff;
  color: #0F172A;
  font-family: 'Manrope', sans-serif;
  font-size: 14px;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}
.vf-form-input:focus {
  border-color: #1B55E2;
  box-shadow: 0 0 0 3px rgba(27,85,226,0.12);
}
.vf-form-input::placeholder { color: #94A3B8; }
.vf-form-input[type="file"] { padding: 8px 14px; cursor: pointer; }

select.vf-form-input {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%2394A3B8'%3E%3Cpath fill-rule='evenodd' d='M5.23 7.21a.75.75 0 011.06.02L10 11.168l3.71-3.938a.75.75 0 111.08 1.04l-4.25 4.5a.75.75 0 01-1.08 0l-4.25-4.5a.75.75 0 01.02-1.06z' clip-rule='evenodd'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  padding-right: 36px;
  cursor: pointer;
}

/* Section dividers inside large form */
.vf-form-section {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: #94A3B8;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  margin: 24px 0 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.vf-form-section::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #F1F5F9;
}

/* Submit button */
.vf-auth-btn {
  width: 100%;
  padding: 13px 24px;
  background: linear-gradient(135deg, #1340B0, #1B55E2);
  color: #ffffff;
  border: none;
  border-radius: 10px;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 16px rgba(27,85,226,0.35);
  margin-top: 10px;
  letter-spacing: -0.01em;
  display: block;
  text-align: center;
  text-decoration: none;
}
.vf-auth-btn:hover {
  background: linear-gradient(135deg, #0e3494, #1340B0);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(27,85,226,0.45);
  color: #ffffff;
  text-decoration: none;
}

/* Footer links */
.vf-auth-footer-links {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 18px;
  font-size: 13px;
}
.vf-auth-footer-links a { color: #1B55E2; font-weight: 600; text-decoration: none; transition: color 0.2s; }
.vf-auth-footer-links a:hover { color: #1340B0; }
.vf-auth-footer-links span { color: #94A3B8; }

/* ---- MODAL OVERRIDES ---- */

.modal-header {
  background: linear-gradient(135deg, #1340B0, #1B55E2) !important;
  border-bottom: none !important;
}
.modal-header .modal-title {
  color: #ffffff !important;
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
}
.modal-header .close {
  color: rgba(255,255,255,0.85) !important;
  opacity: 1 !important;
  text-shadow: none !important;
  font-size: 20px;
}
.modal-body .form-control:focus {
  border-color: #1B55E2 !important;
  box-shadow: 0 0 0 3px rgba(27,85,226,0.10) !important;
}
.modal-footer .btn-primary {
  background: linear-gradient(135deg, #1340B0, #1B55E2) !important;
  border: none !important;
  border-radius: 8px !important;
  font-weight: 600 !important;
}

/* Glyphicon fix (Bootstrap 3 modal uses glyphicons) */
.modal-body .input-group-addon { background: #F0F4FF; border-color: #E2E8F0; }
.modal-body .input-group-addon .fa,
.modal-body .input-group-addon .glyphicon { color: #1B55E2; }

/* ---- RESPONSIVE ---- */

@media (max-width: 1100px) {
  .vf-auth-left { padding: 44px 40px; }
  .vf-auth-form-card { padding: 36px 36px; }
}

@media (max-width: 991px) {
  .vf-auth-panel { grid-template-columns: 1fr; }
  .vf-auth-left {
    position: relative;
    height: auto;
    min-height: 0;
    padding: 40px 32px;
  }
  .vf-auth-left .vf-auth-stats { display: none; }
  .vf-auth-right { min-height: auto; }
  .vf-auth-form-card { max-width: 560px; }
}

@media (max-width: 767px) {
  .vf-auth-left { display: none; }
  .vf-auth-right {
    padding: 32px 16px;
    min-height: 100vh;
    justify-content: center;
  }
  .vf-auth-form-card { padding: 28px 24px; border-radius: 16px; }
  .vf-form-row { grid-template-columns: 1fr; gap: 0; }
  .vf-auth-card-title { font-size: 22px; }
}

@media (max-width: 480px) {
  .vf-auth-form-card { padding: 24px 18px; }
  .vf-auth-footer-links { flex-direction: column; gap: 10px; text-align: center; }
}
