/* auth.css — RTS Ferries */

.login-body {
  min-height: 100vh;
  display: flex;
  font-family: var(--font-body);
  background: var(--navy);
  overflow: hidden;
}

.login-panel {
  flex: 0 0 54%;
  position: relative;
  overflow: hidden;
}
.login-panel-bg {
  position: absolute;
  inset: 0;
  background:
    url('https://images.unsplash.com/photo-1548199569-3e1c6aa7a0bd?w=1400&q=85&fit=crop')
    center/cover no-repeat;
}
.login-panel-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    150deg,
    rgba(11,37,69,.88) 0%,
    rgba(11,37,69,.62) 55%,
    rgba(11,37,69,.35) 100%
  );
}
.login-panel-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 44px 52px;
}

.lp-logo-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}
.lp-logo-wrap img { height: 56px; width: auto; filter: brightness(0) invert(1); }
.lp-logo-name {
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 900;
  color: #fff;
  letter-spacing: -.4px;
}
.lp-logo-sub {
  font-size: 9.5px;
  font-weight: 500;
  color: rgba(255,255,255,.55);
  letter-spacing: .6px;
  display: block;
  font-style: italic;
}

.lp-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,.5);
  margin-bottom: 14px;
}
.lp-eyebrow::before {
  content: '';
  display: block;
  width: 14px; height: 1.5px;
  background: rgba(255,255,255,.4);
}
.lp-headline {
  font-family: var(--font-head);
  font-size: 42px;
  font-weight: 900;
  color: #fff;
  line-height: 1.08;
  letter-spacing: -1px;
  margin-bottom: 16px;
}
.lp-headline em { font-style: normal; color: var(--accent); }
.lp-sub {
  font-size: 13.5px;
  color: rgba(255,255,255,.62);
  line-height: 1.7;
  max-width: 320px;
}

.lp-stats {
  display: flex;
  gap: 36px;
  padding-top: 4px;
}
.lp-stat-num {
  font-family: var(--font-head);
  font-size: 24px;
  font-weight: 900;
  color: #fff;
  line-height: 1;
}
.lp-stat-label {
  font-size: 10.5px;
  color: rgba(255,255,255,.48);
  margin-top: 3px;
  letter-spacing: .2px;
}

.login-form-side {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 52px;
  background: #fff;
}

.login-card {
  width: 100%;
  max-width: 380px;
}

.login-card-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 38px;
}
.login-card-logo-mark {
  width: 80px; height: 56px;
  border-radius: 10px;
  background: var(--navy);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.7);
  font-family: var(--font-head);
  font-size: 17px;
  font-weight: 900;
}
.login-card-brand {
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.1;
}
.login-card-brand-sub {
  font-size: 10px;
  color: var(--grey-text);
  letter-spacing: .4px;
}

.login-card h1 {
  font-family: var(--font-head);
  font-size: 25px;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -.4px;
  margin-bottom: 4px;
}
.login-card-sub {
  font-size: 13px;
  color: var(--grey-text);
  margin-bottom: 32px;
}

.login-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 16px;
}
.login-field label {
  font-size: 11px;
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--text);
  letter-spacing: .5px;
  text-transform: uppercase;
}
.login-field input {
  padding: 12px 14px;
  border: 1.5px solid var(--grey-mid);
  border-radius: var(--radius);
  font-size: 14px;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--off-white);
  outline: none;
  transition: border-color var(--ease), box-shadow var(--ease), background var(--ease);
}
.login-field input:focus {
  border-color: var(--navy-light);
  box-shadow: 0 0 0 3px rgba(26,84,144,.1);
  background: #fff;
}

.login-error {
  font-size: 12px;
  color: #c0392b;
  background: #fdf0ef;
  border: 1px solid #f5c6c2;
  border-radius: var(--radius);
  padding: 9px 13px;
  margin-bottom: 12px;
}

#login-btn {
  width: 100%;
  margin-top: 10px;
  padding: 13px;
  background: var(--navy);
  color: #fff;
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 700;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background var(--ease), transform var(--ease), box-shadow var(--ease);
  letter-spacing: .3px;
}
#login-btn:hover:not(:disabled) {
  background: var(--navy-light);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(11,37,69,.22);
}
#login-btn:disabled { opacity: .55; cursor: not-allowed; }

.login-footer-note {
  margin-top: 24px;
  font-size: 11px;
  color: var(--grey-text);
  text-align: center;
  line-height: 1.6;
}

.relogin-overlay {
  position: fixed; inset: 0;
  background: rgba(11,37,69,.6);
  backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  z-index: 9999;
}
.relogin-overlay[hidden] { display: none; }
.relogin-card {
  width: 100%; max-width: 340px;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 28px;
}
.relogin-card h3 {
  font-family: var(--font-head);
  font-size: 16px; font-weight: 700; color: var(--navy); margin-bottom: 4px;
}
.relogin-card p { font-size: 12px; color: var(--grey-text); margin-bottom: 16px; }
.relogin-card input {
  width: 100%; padding: 10px 12px;
  border: 1.5px solid var(--grey-mid);
  border-radius: var(--radius);
  font-size: 13px; font-family: var(--font-body);
  margin-bottom: 10px; outline: none;
  transition: border-color var(--ease);
}
.relogin-card input:focus { border-color: var(--navy-light); }
.relogin-actions { display: flex; gap: 8px; margin-top: 6px; }
.relogin-actions button {
  flex: 1; padding: 10px;
  border: none; border-radius: var(--radius);
  font-weight: 700; font-size: 13px;
  font-family: var(--font-head);
  cursor: pointer; transition: filter var(--ease);
}
.relogin-actions button:hover { filter: brightness(1.08); }
#relogin-submit { background: var(--navy); color: #fff; }
#relogin-logout  { background: var(--grey-light); color: var(--text); }

@media (max-width: 768px) {
  .login-panel { display: none; }
  .login-form-side { background: #fff; padding: 32px 24px; }
}
.login-card-logo-img { height: 56px; width: auto; }