/* ─────────────────────────────────────────
   SRC Member Portal — style.css
   Palette: Gold #ad974f · Navy #002366 · Off-white #f8f9fa
   ───────────────────────────────────────── */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --gold:       #ad974f;
  --gold-light: #c9b06a;
  --gold-dim:   #7a6a38;
  --navy:       #002366;
  --navy-deep:  #001540;
  --white:      #f8f9fa;
  --ink:        #020001;
  --muted:      #3a3630;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-ui:      'Tenor Sans', 'Palatino Linotype', serif;
}

html, body {
  height: 100%;
  width: 100%;
  overflow: hidden;
}

body {
  font-family: var(--font-ui);
  background: var(--navy-deep);
  color: var(--ink);
}

/* ── SPLIT SCREEN ─────────────────────── */

.split-screen {
  display: flex;
  height: 100vh;
  width: 100vw;
}

/* ── LEFT PANEL ──────────────────────── */

.panel--login {
  position: relative;
  width: 30%;
  min-width: 320px;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  flex-shrink: 0;

  /* Subtle texture via CSS noise-ish gradient */
  background-image:
    linear-gradient(160deg, #ffffff 0%, #f0ede6 100%);
}

.panel__inner {
  width: 100%;
  max-width: 340px;
  padding: 48px 40px 40px;
  display: flex;
  flex-direction: column;
  gap: 36px;
}

/* Thin gold right edge */
.panel__edge-rule {
  position: absolute;
  top: 10%;
  right: 0;
  width: 2px;
  height: 80%;
  background: linear-gradient(to bottom, transparent, var(--gold) 30%, var(--gold) 70%, transparent);
  opacity: 0.55;
}

/* ── BRAND ───────────────────────────── */

.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.brand__logo-wrap {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 4px 24px rgba(173, 151, 79, 0.18);
}

.brand__logo {
  width: 72px;
  height: 72px;
  object-fit: contain;
  border-radius: 50%;
}

.brand__rule {
  width: 40px;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
}

.brand__est {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 11.5px;
  letter-spacing: 0.12em;
  color: var(--gold-dim);
  text-transform: uppercase;
}

/* ── PORTAL HEADING ──────────────────── */

.portal-heading {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.portal-heading__label {
  font-family: var(--font-display);
  font-size: 17px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
}

.portal-heading__title {
  font-family: var(--font-display);
  font-size: 52px;
  font-weight: 400;
  line-height: 1;
  color: var(--navy);
  letter-spacing: -0.01em;
}

/* ── FORM FIELDS ─────────────────────── */

.login-form {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field__label {
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}

.field__wrap {
  position: relative;
}

.field__input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid #c8c4bc;
  outline: none;
  padding: 8px 0 10px;
  font-family: var(--font-ui);
  font-size: 15px;
  color: var(--ink);
  letter-spacing: 0.02em;
  transition: border-color 0.3s ease;
  caret-color: var(--gold);
  /* font-style: italic; */
}

.field__input::placeholder {
  color: #b0aba3;
  font-style: italic;
  font-family: var(--font-display);
  font-size: 17px;
}

.field__input:focus {
  border-bottom-color: transparent;
}

/* Animated gold underline on focus */
.field__line {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 1.5px;
  background: var(--gold);
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.field__input:focus ~ .field__line {
  width: 100%;
}

/* ── ACCESS BUTTON ───────────────────── */

.btn-access {
  margin-top: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: center;
  width: 100%;
  padding: 14px 24px;
  background: var(--navy);
  color: var(--gold-light);
  border: 1px solid rgba(173, 151, 79, 0.4);
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 16px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  position: relative;
  overflow: hidden;
  transition: background 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease, border-color 0.3s ease, color 0.3s ease;
}

.btn-access:hover {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
  box-shadow: 0 8px 24px rgba(173, 151, 79, 0.35);
  transform: translateY(-2px);
}

.btn-access:hover .btn-access__arrow {
  color: var(--navy);
  transform: translateX(4px);
}


/* ── FOOTER LINKS ────────────────────── */

.panel__footer {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  margin-top: 4px;
}

.footer-link {
  font-family: var(--font-display);
  font-size: 12px;
  color: var(--muted);
  text-decoration: none;
  letter-spacing: 0.06em;
  transition: color 0.2s;
}

.footer-link:hover {
  color: var(--gold);
}

.footer-sep {
  color: #c8c4bc;
  font-size: 12px;
}

/* ── RIGHT PANEL ─────────────────────── */

.panel--visual {
  position: relative;
  flex: 1;
  overflow: hidden;
}

.visual__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  filter: saturate(0.88) brightness(0.9);
  transition: transform 8s ease;
}

.panel--visual:hover .visual__img {
  transform: scale(1.03);
}

/* Gradient overlay — navy fade on left, dark at bottom */
.visual__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, rgba(0,23,64,0.72) 0%, rgba(0,23,64,0.08) 40%, transparent 100%),
    linear-gradient(to top, rgba(0,0,0,0.55) 0%, transparent 45%);
  pointer-events: none;
}

/* Caption bottom-right */
.visual__caption {
  position: absolute;
  top: 36px;
  right: 40px;
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.visual__caption-line {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 17px;
  color: rgba(248, 249, 250, 0.75);
  letter-spacing: 0.08em;
}

.visual__caption-year {
  font-family: var(--font-display);
  font-size: 17px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-light);
  opacity: 0.85;
}

/* ── ENTRANCE ANIMATION ──────────────── */

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

.brand          { animation: fadeUp 0.7s ease both; animation-delay: 0.05s; }
.portal-heading { animation: fadeUp 0.7s ease both; animation-delay: 0.15s; }
.login-form     { animation: fadeUp 0.7s ease both; animation-delay: 0.28s; }
.panel__footer  { animation: fadeUp 0.7s ease both; animation-delay: 0.42s; }

@keyframes panelReveal {
  from { opacity: 0; transform: translateX(-24px); }
  to   { opacity: 1; transform: translateX(0); }
}

.panel--login {
  animation: panelReveal 0.85s cubic-bezier(0.4, 0, 0.2, 1) both;
}

@keyframes imgReveal {
  from { opacity: 0; transform: scale(1.04); }
  to   { opacity: 1; transform: scale(1); }
}

.panel--visual {
  animation: imgReveal 1.1s cubic-bezier(0.4, 0, 0.2, 1) both;
  animation-delay: 0.1s;
}

/* ── SHAKE (empty submit) ────────────── */

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%       { transform: translateX(-6px); }
  40%       { transform: translateX(6px); }
  60%       { transform: translateX(-4px); }
  80%       { transform: translateX(4px); }
}

.btn-access.shake {
  animation: shake 0.42s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

/* ── RESPONSIVE — narrow screens ─────── */

@media (max-width: 700px) {
  .split-screen {
    flex-direction: column;
    overflow-y: auto;
    height: auto;
  }

  .panel--login {
    width: 100%;
    min-width: unset;
    padding: 48px 0;
  }

  .panel--visual {
    height: 40vh;
    flex: none;
    width: 100%;
  }

  .panel__edge-rule { display: none; }
}