/* ── Portal Login / Auth Styles ── */

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

body.portal-login-body {
  font-family: "Manrope", "Segoe UI", sans-serif;
  background: #fff;
  color: #1a1a1a;
  height: 100vh;
  overflow: hidden;
}

@media (max-width: 1024px) {
  body.portal-login-body {
    overflow-y: auto;
    height: auto;
  }
}

/* ── Split Layout ── */
.portal-login-split {
  display: flex;
  height: 100vh;
  width: 100%;
}

@media (max-width: 1024px) {
  .portal-login-split {
    flex-direction: column;
    height: auto;
    min-height: 100vh;
  }
}

/* ── Visual Column ── */
.portal-login-visual {
  flex: 2;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #111;
}

@media (max-width: 1024px) {
  .portal-login-visual {
    flex: none;
    height: 38vh;
    min-height: 280px;
  }
}

.portal-login-visual-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
}

.portal-login-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,0.5) 0%, transparent 60%);
  z-index: 1;
}

.portal-login-visual-content {
  position: relative;
  z-index: 10;
  text-align: center;
  color: #fff;
  padding: 40px;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 40px;
  max-width: 460px;
  box-shadow: 0 40px 100px rgba(0,0,0,0.5);
  margin: 20px;
}

@media (max-width: 1024px) {
  .portal-login-visual-content {
    padding: 25px;
    border-radius: 30px;
  }
}

.portal-login-visual-logo {
  width: 80px;
  height: 80px;
  border-radius: 20px;
  background: #fff;
  padding: 10px;
  margin: 0 auto 25px auto;
  display: block;
  box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

@media (max-width: 1024px) {
  .portal-login-visual-logo {
    width: 55px;
    height: 55px;
    margin-bottom: 15px;
    padding: 7px;
  }
}

.portal-login-visual-content h2 {
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  font-size: 2.6rem;
  margin-bottom: 10px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.1;
}

@media (max-width: 1024px) {
  .portal-login-visual-content h2 {
    font-size: 1.8rem;
  }
}

.portal-login-visual-content p {
  font-size: 0.95rem;
  opacity: 0.95;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 500;
}

.portal-login-visual-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 30px;
  padding: 14px 28px;
  border-radius: 999px;
  background: #fff;
  color: #12332b;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  box-shadow: 0 16px 40px rgba(0,0,0,0.25);
  transition: all 0.3s ease;
}

.portal-login-visual-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 50px rgba(0,0,0,0.35);
  background: #fdfdfd;
}

/* ── Form Column ── */
.portal-login-content {
  flex: 1;
  min-width: 450px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 50px;
  position: relative;
  z-index: 20;
  box-shadow: -30px 0 80px rgba(0,0,0,0.06);
  overflow-y: auto;
}

@media (max-width: 1024px) {
  .portal-login-content {
    flex: none;
    min-width: 100%;
    padding: 45px 25px 60px;
    box-shadow: none;
    border-radius: 30px 30px 0 0;
    margin-top: -30px;
  }
}

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

.portal-login-box h1 {
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  font-size: 3rem;
  line-height: 1;
  color: #1a1a1a;
  margin-bottom: 12px;
  font-weight: 700;
}

@media (max-width: 1024px) {
  .portal-login-box h1 {
    font-size: 2.4rem;
  }
}

.portal-login-subtitle {
  color: #666;
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 32px;
}

/* ── Alert ── */
.portal-login-alert--error {
  background: #fff8f8;
  border: 1px solid #fed7d7;
  color: #c53030;
  padding: 16px;
  border-radius: 14px;
  margin-bottom: 25px;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 12px;
  line-height: 1.4;
}

/* ── 2-Step Form ── */
.portal-login-step {
  display: none;
  animation: portal-login-step-in 280ms ease both;
}

.portal-login-step.is-visible {
  display: block;
}

@keyframes portal-login-step-in {
  from { opacity: 0; transform: translateX(14px); }
  to   { opacity: 1; transform: none; }
}

/* ── Fields ── */
.portal-login-field {
  display: block;
  margin-bottom: 24px;
}

.portal-login-field span {
  display: block;
  font-size: 0.8rem;
  font-weight: 800;
  color: #1a1a1a;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.portal-login-field input {
  width: 100%;
  padding: 16px 22px;
  border-radius: 18px;
  border: 2px solid #f0f0f0;
  background: #fcfcfc;
  font-family: "Manrope", sans-serif;
  font-size: 1.05rem;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
  outline: none;
  color: #1a1a1a;
}

.portal-login-field input:focus {
  border-color: #d6b46a;
  background: #fff;
  box-shadow: 0 0 0 5px rgba(214, 180, 106, 0.12);
}

/* ── Buttons ── */
.portal-login-btn--primary {
  width: 100%;
  background: #12332b;
  color: #fff;
  padding: 20px;
  border-radius: 18px;
  font-size: 1.1rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  font-family: "Manrope", sans-serif;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  box-shadow: 0 12px 35px rgba(18, 51, 43, 0.22);
  margin-top: 10px;
}

.portal-login-btn--primary:hover {
  background: #0d2721;
  transform: translateY(-3px);
  box-shadow: 0 20px 45px rgba(18, 51, 43, 0.32);
}

/* ── Progress Dots ── */
.portal-login-progress {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-bottom: 28px;
}

.portal-login-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #ddd;
  transition: background 240ms ease, width 240ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.portal-login-dot.is-active {
  background: #12332b;
  width: 22px;
}

@media (prefers-reduced-motion: reduce) {
  .portal-login-step { animation: none; }
  .portal-login-dot { transition: none; }
}

/* ── Footer ── */
.portal-login-footer {
  margin-top: 45px;
  text-align: center;
}

.portal-login-footer p {
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 25px;
  line-height: 1.5;
}

.portal-login-inline-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 25px;
  padding: 12px 22px;
  border-radius: 15px;
  border: 1.5px solid rgba(18, 51, 43, 0.1);
  background: #f8faf9;
  color: #12332b;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 800;
  transition: all 0.3s ease;
}

.portal-login-inline-cta:hover {
  transform: translateY(-2px);
  border-color: #12332b;
  background: #fff;
  box-shadow: 0 15px 35px rgba(18, 51, 43, 0.12);
}

.portal-login-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #eee;
  padding-top: 25px;
}

.portal-login-nav a {
  color: #666;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  transition: color 0.2s;
}

.portal-login-nav a:hover {
  color: #12332b;
}
