/* ── Page shell ── */
html, body {
  margin: 0;
  padding: 0;
  font-family: 'Rubik', sans-serif;
  overflow-x: hidden;
}

/* ══════════════════════════ TWO-PANEL HERO ══════════════════════════ */
.login-hero {
  display: flex;
  min-height: 100dvh;
}

/* ── RIGHT PANEL (cream) — first child = visual right in RTL ── */
.right {
  flex: 0 0 48%;
  background: #f8f7f2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 40px;
  min-height: 912px;
}

/* Pharaoh decorative image at top */
.right-deco-top {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 30px;
  margin-bottom: 20px;
}

.right-pharaoh-img {
  width: 100%;
  max-width: 586px;
  height: 49px;
  object-fit: contain;
  object-position: center;
  margin-bottom: 14px;
}

/* Gold lotus separator — right panel top */
.right-lotus-sep {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  max-width: 340px;
}

.right-sep-line {
  flex: 1;
  height: 1.2px;
  background: #daad4c;
}

.right-lotus-img {
  width: 50px;
  height: 50px;
  object-fit: contain;
  flex-shrink: 0;
  pointer-events: none;
  padding-bottom: 15px;
}

/* ══════════════════════════ LOGIN CARD ══════════════════════════ */
.login-card {
  background: #ffffff;
  border-radius: 15px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  padding: 40px 45px 32px;
  width: 100%;
  max-width: 569px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* Card header: title + underline */
.login-card-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.login-card-title {
  font-weight: 700;
  font-size: 26px;
  color: var(--navy, #00024a);
  margin: 0;
  line-height: 1.2;
  text-align: center;
}

.login-card-title-underline {
  width: 56px;
  height: 4px;
  background: var(--navy, #00024a);
  border-radius: 2px;
}

.login-card-subtitle {
  font-weight: 400;
  font-size: 13px;
  color: #888;
  margin: 0;
  line-height: 1.5;
  text-align: center;
}

/* ── Input fields ── */
.login-card-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 10px;
}

.login-card-label {
  font-weight: 600;
  font-size: 13px;
  color: var(--navy, #00024a);
}

.login-card-input-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1.2px solid #cfd1ff;
  border-radius: 7px;
  padding: 0 14px;
  height: 44px;
  background: #fff;
  transition: border-color 0.18s;
}

.login-card-input-wrap:focus-within {
  border-color: var(--accent, #3d42c8);
  box-shadow: 0 0 0 3px rgba(61, 66, 200, 0.1);
}

.login-card-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 13px;
  color: #333;
  background: transparent;
  min-width: 0;
  text-align: right;
}

.login-card-input::placeholder {
  color: #bbb;
  font-size: 12px;
}

/* Masked field icons (email, lock) — right side of input (first child in RTL flex) */
.login-card-field-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  background-color: #3d42c8;
  mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;
  -webkit-mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
}

.login-card-email-icon {
  mask-image: url('../assets/icons/email.png');
  -webkit-mask-image: url('../assets/icons/email.png');
}

.login-card-lock-icon {
  mask-image: url('../assets/icons/lock.png');
  -webkit-mask-image: url('../assets/icons/lock.png');
}

/* Eye toggle button — last child = visual left in RTL */
.login-card-eye-btn {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.login-card-eye-icon {
  width: 20px;
  height: 20px;
  background-color: #3d42c8;
  mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;
  -webkit-mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-image: url('../assets/icons/eye.png');
  -webkit-mask-image: url('../assets/icons/eye.png');
}

.invis {
  mask-image: url('../assets/icons/eye-invis.png');
  -webkit-mask-image: url('../assets/icons/eye-invis.png');
}

/* ── Options row: remember (right) + forgot (left) ── */
.login-card-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: -4px;
}

.login-card-remember {
  display: flex;
  align-items: center;
  gap: 8px;
}

.login-card-checkbox {
  width: 16px;
  height: 16px;
  accent-color: var(--accent, #3d42c8);
  cursor: pointer;
  flex-shrink: 0;
}

.login-card-remember-label {
  font-size: 13px;
  color: #555;
  cursor: pointer;
  margin: 0;
}

.login-card-forgot {
  font-size: 13px;
  color: #3d42c8;
  text-decoration: none;
}
.login-card-forgot:hover {
  text-decoration: underline;
  color: #2d308f;
}

/* ── Submit button ── */
.btn-login-card-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 44px;
  background: var(--primary, #2d308f);
  border-radius: 7px;
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: background 0.18s;
  cursor: pointer;
}

.btn-login-card-submit:hover {
  background: #23266e;
  color: #fff;
  text-decoration: none;
}

.login-card-btn-icon {
  width: 18px;
  height: 18px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  flex-shrink: 0;
}

/* ── OR separator ── */
.login-card-or {
  display: flex;
  align-items: center;
  gap: 12px;
}

.login-card-or-line {
  flex: 1;
  height: 1px;
  background: #e0e0e0;
}

.login-card-or-text {
  font-size: 13px;
  color: #aaa;
  flex-shrink: 0;
}

/* ── Back home button ── */
.btn-login-card-home {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 44px;
  background: #fff;
  border: 1.5px solid var(--primary, #2d308f);
  border-radius: 7px;
  color: var(--primary, #2d308f);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: background 0.18s, color 0.18s;
  cursor: pointer;
}

.btn-login-card-home:hover {
  background: #eef0ff;
  color: #2d308f;
  text-decoration: none;
}

.login-card-home-icon {
  width: 18px;
  height: 18px;
  background-color: var(--primary, #2d308f);
  mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;
  -webkit-mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-image: url('../assets/icons/home.png');
  -webkit-mask-image: url('../assets/icons/home.png');
  flex-shrink: 0;
  transition: background-color 0.18s;
}

.login-card-door-icon {
  mask-image: url('../assets/icons/login.png');
  -webkit-mask-image: url('../assets/icons/login.png');
}

.btn-login-card-home:hover .login-card-home-icon {
  background-color: #2d308f;
}

/* ── No account row ── */
.login-card-no-account {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: -4px;
}

.login-card-no-acct-text {
  font-size: 13px;
  color: #888;
}

.login-card-contact-link {
  font-size: 13px;
  color: #3d42c8;
  text-decoration: none;
  font-weight: 600;
}

.login-card-contact-link:hover {
  text-decoration: underline;
}

/* ══════════════════════════ LEFT PANEL (navy) ══════════════════════════ */
.left {
  flex: 0 0 52%;
  background: linear-gradient(to bottom, #000269 0%, #000136 100%);
  min-height: 912px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* University logo — top area, pinned to the right edge of the panel */
.left-uni-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 38px 36px 0 30px;
  align-self: stretch;
  justify-content: flex-start; /* first child = visual right in RTL */
}

.left-uni-logo {
  width: 60px;
  height: 60px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  flex-shrink: 0;
}

.left-uni-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  text-align: right;
}

.left-uni-name {
  font-weight: 700;
  font-size: 18px;
  color: #fff;
  margin: 0;
  line-height: 1.2;
}

.left-uni-sub {
  font-weight: 400;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.68);
  margin: 0;
  line-height: 1.4;
}

/* Welcome text block — shifted higher by moving padding to bottom */
.left-welcome {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 40px 35rem; /* large bottom padding lifts content well above building */
  gap: 18px;
  position: relative;
  z-index: 2;
}

.left-welcome-title {
  font-weight: 700;
  font-size: 42px;
  color: #fff;
  margin: 0;
  line-height: 1.2;
  letter-spacing: -0.5px;
}

/* Gold lotus separator inside left panel */
.left-deco-sep {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  max-width: 300px;
}

.left-gold-line {
  flex: 1;
  height: 1.2px;
  background: #daad4c;
}

.left-lotus-sm {
  width: 32px;
  height: 32px;
  object-fit: contain;
  flex-shrink: 0;
  pointer-events: none;
  padding-bottom: 7px;
}

.left-welcome-sub {
  font-weight: 400;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.72);
  margin: 0;
  line-height: 1.75;
}

/* Cover image — full-width, background dissolved via multiply blend */
.left-cover-wrap {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  pointer-events: none;
  z-index: 1;
}

.left-cover-img {
  width: 100%;
  height: auto;
  max-height: 800px;
  min-height: 600px;
  display: block;
  mix-blend-mode: multiply;
}
/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 1440px) {
  .left-welcome {
    padding: 0 40px 30rem;
  }
}

@media (max-width: 1024px) {
  .left-welcome {
    padding: 0 40px 25rem;
  }
}

@media (max-width: 900px) {
  .left {
    display: none !important;
  }

  .login-hero {
    min-height: 100dvh;
  }

  .right {
    flex: 0 0 100%;
    width: 100%;
    min-height: 100dvh;
    padding: 40px 20px 48px;
  }

  /* Let the card stretch to fill the available width */
  .login-card {
    max-width: 100%;
    padding: 32px 24px 28px;
  }

  /* Separator spans the full card width */
  .right-lotus-sep {
    max-width: 100%;
  }

  /* Shrink the deco top gap */
  .right-deco-top {
    padding-top: 20px;
    margin-bottom: 16px;
  }
}