/* ── Login Page ─────────────────────────────────────────────── */
.login-body {
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  align-items: stretch;
}

.login-split {
  display: flex;
  width: 100%;
  min-height: 100vh;
}

/* Left panel */
.login-left {
  flex: 1;
  background: linear-gradient(135deg, var(--navy) 0%, #22408a 60%, #2563EB 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 2.5rem;
  position: relative;
  overflow: hidden;
}
.login-left::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 70% 30%, rgba(201,168,76,.18) 0%, transparent 60%),
              radial-gradient(ellipse at 20% 80%, rgba(37,99,235,.25) 0%, transparent 50%);
}
.login-left-inner { position: relative; z-index: 1; max-width: 400px; }

.login-brand {
  font-size: 1.6rem; font-weight: 700; letter-spacing: -.5px; margin-bottom: 2rem;
}
.login-brand .logo-in, .login-brand .logo-link { color: #fff; }
.login-brand .logo-vestor { color: var(--gold); }

.login-hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  color: #fff; line-height: 1.2; margin-bottom: .75rem;
}
.login-hero-sub {
  font-size: .92rem; color: rgba(255,255,255,.6);
  line-height: 1.65; margin-bottom: 2.5rem;
}
.login-features { display: flex; flex-direction: column; gap: .75rem; }
.lf-item {
  display: flex; align-items: center; gap: .75rem;
  font-size: .86rem; color: rgba(255,255,255,.75);
}
.lf-icon {
  width: 34px; height: 34px; border-radius: var(--rsm);
  background: rgba(255,255,255,.1); display: flex; align-items: center;
  justify-content: center; font-size: 1rem; flex-shrink: 0;
}

/* Right panel */
.login-right {
  width: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: var(--bg);
}

.login-card {
  width: 100%; max-width: 400px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--sh);
  border: 1px solid var(--border);
  padding: 2.5rem;
}
.login-card-header { margin-bottom: 1.75rem; }
.login-card-badge {
  display: inline-block;
  font-size: .68rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
  color: var(--gold); background: rgba(201,168,76,.12);
  border: 1px solid rgba(201,168,76,.25);
  padding: .22rem .7rem; border-radius: 100px; margin-bottom: .85rem;
}
.login-card-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem; color: var(--navy); margin-bottom: .35rem;
}
.login-card-sub { font-size: .84rem; color: var(--muted); }

.login-error {
  background: #FEF2F2; border: 1px solid #FECACA;
  border-radius: var(--rsm); padding: .65rem 1rem;
  font-size: .84rem; color: var(--red); margin-bottom: 1.2rem;
}

.login-form { display: flex; flex-direction: column; gap: 1.1rem; }
.lf-group { display: flex; flex-direction: column; gap: .35rem; }
.lf-label { font-size: .78rem; font-weight: 600; color: var(--navy); }
.lf-input {
  width: 100%; padding: .7rem .9rem;
  border: 1.5px solid var(--border); border-radius: var(--rsm);
  font-family: 'DM Sans', sans-serif; font-size: .9rem; color: var(--ink);
  background: var(--white); outline: none; transition: border-color .2s, box-shadow .2s;
}
.lf-input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(37,99,235,.1); }

.lf-pwd-wrap { position: relative; width: 100%; display: block; }
.lf-pwd-wrap .lf-input { width: 100%; padding-right: 3rem; box-sizing: border-box; }
.lf-eye {
  position: absolute; right: .7rem; top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer;
  color: var(--muted); padding: .3rem; border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  transition: color .18s, background .18s;
  line-height: 1;
}
.lf-eye:hover {
  color: var(--navy);
  background: rgba(26,58,107,.07);
}
.lf-eye svg { display: block; }

.lf-submit {
  width: 100%; padding: .85rem;
  background: var(--navy); color: #fff;
  border: none; border-radius: var(--rsm);
  font-family: 'DM Sans', sans-serif; font-size: .95rem; font-weight: 700;
  cursor: pointer; transition: all .22s; margin-top: .5rem;
  box-shadow: 0 4px 14px rgba(26,58,107,.25);
}
.lf-submit:hover { background: #152f57; transform: translateY(-1px); box-shadow: 0 6px 20px rgba(26,58,107,.35); }
.lf-submit:disabled { background: #8899bb; cursor: not-allowed; transform: none; }

.login-footer-note { text-align: center; margin-top: 1.75rem; font-size: .78rem; color: var(--muted); }

@media (max-width: 768px) {
  .login-left { display: none; }
  .login-right { width: 100%; }
}

/* ── Hide browser native password reveal buttons ── */
input[type="password"]::-ms-reveal,
input[type="password"]::-ms-clear,
input[type="password"]::-webkit-contacts-auto-fill-button,
input[type="password"]::-webkit-credentials-auto-fill-button,
input[type="password"]::-webkit-textfield-decoration-container,
#loginPassword::-ms-reveal,
#loginPassword::-webkit-reveal {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
  width: 0 !important;
  height: 0 !important;
}

/* ── Password field masking (no type=password = no browser eye icon) ── */
.lf-pwd-field {
  -webkit-text-security: disc;
  text-security: disc;
  /* Fallback for Firefox which doesn't support text-security */
  font-family: 'DM Sans', sans-serif;
  width: 100% !important;
  box-sizing: border-box !important;
  max-width: 100% !important;
  overflow: hidden !important;
}
/* When showing password (toggled class) */
.lf-pwd-field.show-pwd {
  -webkit-text-security: none;
  text-security: none;
  font-family: 'DM Sans', sans-serif;
}
/* Firefox fallback — override letter-spacing dots */
@-moz-document url-prefix() {
  .lf-pwd-field:not(.show-pwd) {
    letter-spacing: .2em;
    font-size: 1.1rem;
    color: var(--ink);
  }
}

/* Force password field same width as email field — override any main.css interference */
.login-form .lf-group { position: relative; width: 100%; }
.login-form .lf-group input,
.login-form #loginEmail,
.login-form #loginPassword {
  width: 100% !important;
  box-sizing: border-box !important;
  display: block !important;
  min-width: 0 !important;
  max-width: 100% !important;
}