/* ============================================================
   login.css — Merivane International Auth Pages
   Classic private banking aesthetic — human, warm, prestigious
   ============================================================ */
:root {
  --gold: #c9a84c; --gold-light: #e8c97a; --gold-dark: #a07830;
  --navy: #0a1628; --navy-mid: #132040; --navy-light: #1e3260;
  --cream: #f8f4ee; --cream-dark: #ede8df;
  --success: #1a8f5a; --danger: #c0392b; --warning: #d4850a;
  --text-muted: #5a6a85;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--navy);
  color: var(--navy);
}

/* ── OUTER SHELL ──────────────────────────────────────────── */
#login-page {
  display: flex;
  min-height: 100vh;
}

/* ── LEFT PANEL — PHOTO ───────────────────────────────────── */
.login-left {
  flex: 1.1;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Photo background with overlay */
.login-left-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: transform 8s ease-out;
}
.login-left-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(10,22,40,0.72) 0%,
    rgba(10,22,40,0.45) 40%,
    rgba(10,22,40,0.68) 100%
  );
}

/* Subtle Ken Burns zoom */
.login-left:hover .login-left-bg {
  transform: scale(1.03);
}

/* Logo */
.slider-logo {
  position: relative;
  z-index: 10;
  padding: 36px 40px;
}
.slider-logo img {
  height: 48px;
  width: auto;
  filter: brightness(1.1);
}
.slider-logo .logo-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  color: white;
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* Bottom content over photo */
.photo-content {
  position: relative;
  z-index: 10;
  margin-top: auto;
  padding: 40px 48px;
}
.photo-eyebrow {
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
  font-weight: 600;
}
.photo-heading {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.6rem;
  font-weight: 600;
  color: white;
  line-height: 1.2;
  margin-bottom: 16px;
  letter-spacing: -0.3px;
}
.photo-body {
  font-size: 14px;
  color: rgba(255,255,255,0.65);
  line-height: 1.75;
  max-width: 420px;
  margin-bottom: 28px;
}
.photo-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.photo-pill {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  backdrop-filter: blur(8px);
  padding: 7px 16px;
  border-radius: 100px;
  font-size: 12px;
  color: rgba(255,255,255,0.85);
  font-weight: 500;
}

/* Decorative gold rule */
.photo-rule {
  width: 48px;
  height: 2px;
  background: var(--gold);
  margin-bottom: 20px;
}

/* Slider dots */
.slider-dots-row {
  display: flex;
  gap: 8px;
  margin-top: 32px;
}
.slider-dot-item {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  cursor: pointer;
  transition: all 0.3s;
}
.slider-dot-item.active {
  background: var(--gold);
  width: 24px;
  border-radius: 3px;
}

/* Progress bar */
.slider-progress-bar {
  position: absolute;
  bottom: 0; left: 0;
  height: 2px;
  background: var(--gold);
  width: 0%;
  z-index: 20;
  transition: width 5000ms linear;
}

/* Slide controls */
.slider-arrows-row {
  position: absolute;
  bottom: 40px; right: 40px;
  z-index: 20;
  display: flex;
  gap: 8px;
}
.slider-arrow-btn {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(8px);
  color: white;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.slider-arrow-btn:hover {
  background: rgba(201,168,76,0.3);
  border-color: var(--gold);
}

/* ── RIGHT PANEL — FORM ───────────────────────────────────── */
.login-right {
  width: 440px;
  flex-shrink: 0;
  background: var(--cream);
  display: flex;
  flex-direction: column;
  padding: 48px 52px;
  overflow-y: auto;
  position: relative;
}

/* Subtle texture overlay */
.login-right::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23c9a84c' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

.login-right > * { position: relative; z-index: 1; }

.login-right-logo {
  margin-bottom: 40px;
}
.login-right-logo img {
  height: 36px;
  width: auto;
}
.login-right-logo .text-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
  color: var(--navy);
  font-weight: 600;
  letter-spacing: 0.5px;
}

.login-right h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 8px;
  letter-spacing: -0.3px;
}

.subtitle {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 28px;
}

/* Form elements */
.form-group {
  margin-bottom: 18px;
}
.form-group label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 7px;
}
.form-group input,
.form-group select {
  width: 100%;
  padding: 12px 15px;
  border: 1.5px solid var(--cream-dark);
  border-radius: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: var(--navy);
  background: white;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-group input:focus,
.form-group select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,168,76,0.12);
}
.form-group input::placeholder { color: #b0b8c8; }

/* Gold divider input accent */
.form-group input:not(:placeholder-shown) {
  border-color: rgba(10,22,40,0.25);
}

.form-row-inline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.remember-me {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
  cursor: pointer;
}
.remember-me input[type="checkbox"] {
  accent-color: var(--gold);
  width: 15px;
  height: 15px;
}
.forgot-link {
  font-size: 13px;
  color: var(--gold-dark);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}
.forgot-link:hover { color: var(--gold); }

/* Primary button */
.btn-primary {
  width: 100%;
  padding: 14px;
  background: var(--navy);
  color: white;
  border: none;
  border-radius: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: 0.3px;
  position: relative;
  overflow: hidden;
  transition: background 0.2s, transform 0.15s;
}
.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 40%, rgba(201,168,76,0.15) 100%);
  pointer-events: none;
}
.btn-primary:hover {
  background: #132040;
  transform: translateY(-1px);
}
.btn-primary:active { transform: translateY(0); }
.btn-primary:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }

/* Secure badge */
.secure-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 16px;
  justify-content: center;
}
.dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--success);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%,100% { opacity: 1; }
  50%      { opacity: 0.4; }
}

/* Divider */
.form-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 22px 0;
  color: var(--cream-dark);
}
.form-divider::before,
.form-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--cream-dark);
}
.form-divider span {
  font-size: 12px;
  color: #b0b8c8;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.open-account-link {
  text-align: center;
  font-size: 13.5px;
  color: var(--text-muted);
}
.open-account-link a {
  color: var(--navy);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1.5px solid var(--gold);
  padding-bottom: 1px;
  transition: color 0.2s;
}
.open-account-link a:hover { color: var(--gold-dark); }

/* Footer links */
.login-right-footer {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: auto;
  padding-top: 28px;
}
.login-right-footer a {
  font-size: 12px;
  color: #b0b8c8;
  text-decoration: none;
  transition: color 0.2s;
}
.login-right-footer a:hover { color: var(--gold-dark); }

/* Gold accent line at top of right panel */
.login-right::after {
  content: '';
  position: absolute;
  top: 0; left: 52px; right: 52px;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

/* Alert */
.alert {
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 13.5px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.alert-success { background: #edf9f3; color: var(--success); border: 1px solid #c3e8d6; }
.alert-error   { background: #fdf0ef; color: var(--danger);  border: 1px solid #f5c6c2; }

/* Register hero */
.register-hero {
  position: relative;
  z-index: 10;
  padding: 0 48px 48px;
}
.register-hero .slide-eyebrow { font-size: 10px; letter-spacing: 3px; text-transform: uppercase; color: var(--gold); margin-bottom: 12px; font-weight: 600; }
.register-hero .slide-heading { font-family: 'Cormorant Garamond', serif; font-size: 2.2rem; color: white; font-weight: 600; line-height: 1.2; margin-bottom: 14px; }
.register-hero .slide-body { font-size: 14px; color: rgba(255,255,255,0.6); line-height: 1.75; }
.slide-pills { display: flex; flex-wrap: wrap; gap: 10px; }
.slide-pill { background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2); backdrop-filter: blur(8px); padding: 7px 16px; border-radius: 100px; font-size: 12px; color: rgba(255,255,255,0.85); font-weight: 500; }

/* Trust badges */
.trust-row {
  display: flex;
  gap: 16px;
  margin-top: 20px;
  flex-wrap: wrap;
}
.trust-badge {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: rgba(255,255,255,0.55);
}
.trust-badge-icon {
  font-size: 15px;
  color: var(--gold);
}

/* Testimonial */
.photo-testimonial {
  position: relative;
  z-index: 10;
  padding: 0 48px 20px;
  margin-top: 20px;
}
.testimonial-quote {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem;
  font-style: italic;
  color: rgba(255,255,255,0.8);
  line-height: 1.6;
  margin-bottom: 12px;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 10px;
}
.testimonial-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gold);
}
.testimonial-name {
  font-size: 12.5px;
  font-weight: 600;
  color: white;
}
.testimonial-title {
  font-size: 11px;
  color: rgba(255,255,255,0.45);
}

/* Responsive */
@media (max-width: 900px) {
  .login-left { display: none; }
  .login-right { width: 100%; padding: 40px 32px; }
}
@media (max-width: 480px) {
  .login-right { padding: 28px 24px; }
}
