/* ═══════════════════════════════════════════════════════════════
   IU SYSTEM – LOGIN PAGE  ·  Navy & Red – Matching IU Website
   ═══════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,700;1,700&family=DM+Sans:wght@300;400;500;600;700&display=swap');

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

:root {
  /* ── IU Navy (from website header) ── */
  --navy-950:    #0a0f1e;
  --navy-900:    #0d1530;
  --navy-800:    #112045;
  --navy-700:    #162b5c;
  --navy-600:    #1b3570;
  --navy-500:    #1e3d82;

  /* ── IU Red (from Apply Now button) ── */
  --red-vivid:   #c0202e;
  --red-soft:    #e0404f;
  --red-pale:    #fce8ea;

  /* ── Neutrals & surfaces ── */
  --cream:       #fdfcfb;
  --white:       #ffffff;
  --surface:     #f5f6fa;
  --text-dark:   #0e1220;
  --text-mid:    #3a3f58;
  --text-muted:  #6b7290;
  --border:      #d0d4e4;
  --input-bg:    #ffffff;

  /* ── Accent (gold-like highlight replaced by soft red) ── */
  --accent:      var(--red-vivid);
  --accent-soft: var(--red-soft);
  --accent-pale: var(--red-pale);

  --shadow-sm:   0 1px 3px rgba(13, 21, 48, 0.08);
  --shadow-md:   0 4px 16px rgba(13, 21, 48, 0.12);
  --shadow-lg:   0 12px 40px rgba(13, 21, 48, 0.18);
  --radius:      10px;
}

html, body {
  height: 100%;
  min-height: 100vh;
}

body {
  font-family: 'DM Sans', sans-serif;
  min-height: 100vh;
  background: var(--navy-950);
  color: var(--text-dark);
  overflow-x: hidden;
}

/* ══════════════════════════════════════════════════════════════
   SHELL WRAPPER
══════════════════════════════════════════════════════════════ */

.shell {
  display: flex;
  min-height: 100vh;
}

/* ══════════════════════════════════════════════════════════════
   LEFT PANEL
══════════════════════════════════════════════════════════════ */

.panel-left {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 100vh;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 52px 60px 52px;
  color: var(--white);
  overflow: hidden;
  background: linear-gradient(155deg,
    var(--navy-700) 0%,
    var(--navy-800) 50%,
    var(--navy-950) 100%
  );
}

/* Layered atmospheric background */
.panel-left::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(ellipse at 75% 18%, rgba(192, 32, 46, 0.13) 0%, transparent 52%),
    radial-gradient(ellipse at 10% 85%, rgba(27, 53, 112, 0.35) 0%, transparent 48%),
    repeating-linear-gradient(
      -45deg,
      transparent,
      transparent 38px,
      rgba(255,255,255,0.016) 38px,
      rgba(255,255,255,0.016) 39px
    );
  pointer-events: none;
  z-index: 0;
}

/* Red vertical accent */
.panel-left::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px; height: 100%;
  background: linear-gradient(to bottom, var(--red-vivid) 0%, rgba(192,32,46,0.1) 70%, transparent 100%);
  z-index: 1;
}

/* Dot grid */
.dot-grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.055) 1px, transparent 1px);
  background-size: 28px 28px;
  z-index: 0;
  pointer-events: none;
}

/* Decorative ring */
.ring-2 {
  position: absolute;
  bottom: -120px;
  right: -80px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  border: 1px solid rgba(192,32,46,0.12);
  z-index: 0;
  pointer-events: none;
}

.ring-2::before {
  content: '';
  position: absolute;
  inset: 40px;
  border-radius: 50%;
  border: 1px solid rgba(192,32,46,0.06);
}

/* ── LOGO ────────────────────────────────────────────────────── */

.left-logo {
  position: relative;
  z-index: 2;
}

.logo-mark {
  display: inline-flex;
  align-items: center;
  gap: 16px;
}

.logo-mark img {
  width: auto;
  height: 100px;
  object-fit: contain;
  opacity: 0.92;
}

.logo-wordmark {
  position: relative;
  padding-left: 16px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
  color: rgba(255,255,255,0.92);
  letter-spacing: 0.01em;
}

.logo-wordmark::before {
  content: '';
  position: absolute;
  left: 0; top: 3px; bottom: 3px;
  width: 2px;
  border-radius: 2px;
  background: linear-gradient(to bottom, var(--red-vivid), rgba(192,32,46,0.15));
}

.logo-wordmark span {
  display: block;
  margin-top: 3px;
  font-size: 12px;
  font-weight: 400;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.05em;
  font-style: normal;
}

/* ── HERO ────────────────────────────────────────────────────── */

.left-hero {
  position: relative;
  z-index: 2;
  max-width: 520px;
}

.left-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 700;
  line-height: 1.1;
  color: var(--white);
  letter-spacing: -0.02em;
}

.left-hero h1 em {
  font-style: italic;
  color: var(--red-soft);
}

.left-hero p {
  margin-top: 20px;
  max-width: 400px;
  font-size: 15px;
  font-weight: 300;
  line-height: 1.78;
  color: rgba(255,255,255,0.58);
}

/* ── LEFT FOOTER ─────────────────────────────────────────────── */

.stat-pill {
  display: none;
}

.left-footer {
  position: relative;
  z-index: 2;
  padding-left: 20px;
  border-left: 2px solid var(--red-vivid);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.left-footer::before {
  content: '"Shaping minds, building futures."';
  font-family: 'Playfair Display', serif;
  font-size: 19px;
  font-weight: 700;
  font-style: italic;
  line-height: 1.4;
  color: rgba(255,255,255,0.88);
  letter-spacing: -0.01em;
}

.left-footer::after {
  content: 'International University Lebanon · Est. 1999';
  font-family: 'DM Sans', sans-serif;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.32);
}

/* ══════════════════════════════════════════════════════════════
   RIGHT PANEL
══════════════════════════════════════════════════════════════ */

.panel-right {
  width: 500px;
  max-width: 100%;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 52px 40px;
  background: var(--cream);
  position: relative;
  overflow: hidden;
}

.panel-right::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 260px; height: 260px;
  background: radial-gradient(circle, rgba(192,32,46,0.06) 0%, transparent 65%);
  border-radius: 50%;
  pointer-events: none;
}

.panel-right::after {
  content: '';
  position: absolute;
  bottom: -60px; left: -60px;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(22,43,92,0.06) 0%, transparent 65%);
  border-radius: 50%;
  pointer-events: none;
}

/* ── FORM CARD ───────────────────────────────────────────────── */

.form-card {
  width: 100%;
  max-width: 420px;
  position: relative;
  z-index: 1;
}

/* ── FORM HEADER ─────────────────────────────────────────────── */

.form-header {
  margin-bottom: 34px;
}

.welcome-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--navy-600);
  margin-bottom: 14px;
}

.welcome-tag::before {
  content: '';
  display: inline-block;
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: var(--red-vivid);
}

.form-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: 34px;
  font-weight: 700;
  color: var(--text-dark);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 10px;
}

.form-header p {
  font-size: 14px;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.6;
}

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

.field {
  margin-bottom: 20px;
}

.field label {
  display: block;
  margin-bottom: 7px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-mid);
}

.field-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.field-wrap .icon {
  position: absolute;
  left: 15px;
  width: 15px;
  height: 15px;
  color: var(--text-muted);
  pointer-events: none;
  flex-shrink: 0;
  transition: color 0.2s;
}

.field-wrap:focus-within .icon {
  color: var(--navy-600);
}

.field-wrap input {
  width: 100%;
  height: 52px;
  padding: 0 44px 0 42px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  background: var(--input-bg);
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: var(--text-dark);
  transition: border-color 0.2s, box-shadow 0.2s;
  box-shadow: var(--shadow-sm);
}

.field-wrap input::placeholder {
  color: #aab0c4;
  font-weight: 300;
}

.field-wrap input:focus {
  outline: none;
  border-color: var(--navy-600);
  box-shadow: 0 0 0 3px rgba(27,53,112,0.14), var(--shadow-sm);
}

/* Eye toggle button */
.eye-btn {
  position: absolute;
  right: 13px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  transition: color 0.2s;
}

.eye-btn:hover {
  color: var(--navy-600);
}

/* Field footer (forgot link) */
.field-footer {
  margin-top: 8px;
  text-align: right;
}

.forgot {
  font-size: 12px;
  font-weight: 500;
  color: var(--navy-700);
  text-decoration: none;
  letter-spacing: 0.01em;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, color 0.2s;
}

.forgot:hover {
  color: var(--red-vivid);
  border-bottom-color: var(--red-vivid);
}

/* ── LOGIN BUTTON ────────────────────────────────────────────── */

.btn-login {
  position: relative;
  width: 100%;
  height: 54px;
  margin-top: 10px;
  border: none;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--navy-700) 0%, var(--navy-600) 100%);
  color: var(--white);
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(22, 43, 92, 0.40);
  transition: transform 0.15s, box-shadow 0.15s, background 0.2s;
}

.btn-login .arrow {
  display: inline-block;
  transition: transform 0.2s;
}

.btn-login::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.10), transparent);
  transition: left 0.45s ease;
}

.btn-login:hover::before { left: 100%; }

.btn-login:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(22, 43, 92, 0.45);
  background: linear-gradient(135deg, var(--red-vivid) 0%, var(--red-soft) 100%);
}

.btn-login:hover .arrow {
  transform: translateX(4px);
}

.btn-login:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(22, 43, 92, 0.28);
}

/* ── BOTTOM COPYRIGHT ────────────────────────────────────────── */

.bottom-brand {
  margin-top: 32px;
  font-size: 11px;
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: 0.03em;
  text-align: center;
  opacity: 0.7;
  position: relative;
  z-index: 1;
}

/* ══════════════════════════════════════════════════════════════
   ANIMATIONS
══════════════════════════════════════════════════════════════ */

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

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.left-logo   { animation: fadeIn 0.55s ease both; }
.left-hero   { animation: fadeSlideUp 0.65s 0.12s ease both; }
.left-footer { animation: fadeSlideUp 0.55s 0.28s ease both; }

.welcome-tag    { animation: fadeSlideUp 0.5s 0.10s ease both; }
.form-header h2 { animation: fadeSlideUp 0.5s 0.18s ease both; }
.form-header p  { animation: fadeSlideUp 0.5s 0.24s ease both; }
.field          { animation: fadeSlideUp 0.5s 0.30s ease both; }
.btn-login      { animation: fadeSlideUp 0.5s 0.38s ease both; }
.bottom-brand   { animation: fadeSlideUp 0.45s 0.46s ease both; }

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE – MOBILE
══════════════════════════════════════════════════════════════ */

@media (max-width: 940px) {

  .shell {
    flex-direction: column;
  }

  .panel-left {
    min-height: unset;
    height: auto;
    flex: 0 0 auto;
    padding: 28px 28px 24px;
    justify-content: center;
    gap: 24px;
  }

  .panel-left::after { display: none; }
  .ring-2 { display: none; }

  .left-hero { display: none; }

  .left-footer {
    display: none;
  }

  .logo-mark img { height: 50px; }

  .logo-wordmark {
    font-size: 13px;
    padding-left: 12px;
  }

  .logo-wordmark span { font-size: 11px; }

  .panel-right {
    width: 100%;
    flex: 1 1 auto;
    padding: 40px 24px 48px;
    justify-content: flex-start;
  }

  .form-card {
    max-width: 100%;
  }

  .form-header h2 {
    font-size: 28px;
  }
}