:root{
  --left1:#00b2e6;
  --left2:#00b2e6;

  --card:#ffffff;
  --text:#0f172a;
  --muted:#6b7280;
  --muted2:#94a3b8;

  --border:#e5e7eb;
  --shadow: 0 22px 70px rgba(2, 6, 23, .12);

  --accent:#f59e0b;
  --accentHover:#e58a00;

  --link:#0ea5e9;
  --radius:18px;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }

body{
  margin:0;
  background:#f4f6f8;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color:var(--text);
}

/* =========================
   LAYOUT
========================= */

.page{
  min-height:100vh;
  display:grid;
  grid-template-columns: 1.25fr 1fr;
}

/* =========================
   LEFT PANEL
========================= */

.left{
  position:relative;
  overflow:hidden;
  background: linear-gradient(180deg, var(--left1), var(--left2));
  display:flex;
  align-items:stretch;
  justify-content:stretch;
  padding: 0;
}

/* subtle dots */
.left::before{
  content:"";
  position:absolute;
  inset:0;
  background:
    radial-gradient(circle at 15% 20%, rgba(255,255,255,.14) 0 2px, transparent 3px) 0 0/46px 46px,
    radial-gradient(circle at 70% 60%, rgba(255,255,255,.10) 0 2px, transparent 3px) 0 0/64px 64px;
  opacity:.30;
  pointer-events:none;
}

/* illustration */
.left .illu{
  position:absolute;
  inset:0;
  background-image:url("/J1/images/examdirect.png");
  background-repeat:no-repeat;
  background-position:center;
  background-size: min(760px, 80%);
  pointer-events:none;
  z-index:1;
}

/* bottom fade */
.left::after{
  content:"";
  position:absolute;
  left:0; right:0; bottom:0;
  height: 42%;
  background: linear-gradient(0deg, rgba(0,0,0,.50), rgba(0,0,0,0));
  pointer-events:none;
  z-index:2;
}

.left-inner{
  position:relative;
  z-index:3;                 /* ✅ makes text appear above image */
  width:100%;
  padding: clamp(18px, 4vw, 60px);
  display:flex;
  align-items:flex-end;
  justify-content:flex-start;
}

.hero{
  max-width: 720px;
  padding-bottom: 22px;
}

.hero h1{
  margin:0 0 10px 0;
  color:#fff;
  font-size: clamp(38px, 3.6vw, 66px);
  font-weight: 900;
  line-height:1.05;
}

.hero p{
  margin:0;
  color: rgba(255,255,255,.92);
  font-size: clamp(14px, 1.15vw, 18px);
  line-height:1.7;
  max-width: 680px;
}

.hero .slogan{
  margin-top: 16px;
  font-weight: 900;
  color:#fff;
  opacity:.95;
}

/* =========================
   RIGHT PANEL
========================= */

.right{
  background: linear-gradient(180deg, #ffffff, #f6f7f9);
  display:flex;
  align-items:center;
  justify-content:center;
  padding: clamp(18px, 3vw, 56px);
}

.card{
  width:100%;
  max-width: 560px;
  background: var(--card);
  border:1px solid rgba(229,231,235,.9);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(18px, 2.2vw, 30px);
}

/* header */
.brand{
  display:flex;
  align-items:center;
  gap:14px;
  margin-bottom: 10px;
}

.logo{
  width:56px;
  height:56px;
  border-radius: 14px;
  border:1px solid rgba(229,231,235,.9);
  background:#f1f5f9;
  overflow:hidden;
  flex:0 0 auto;
}

.logo img{
  width:100%;
  height:100%;
  object-fit:cover;
}

.brand-text h2{
  margin:0;
  font-size: 20px;
  line-height:1.1;
}

.brand-text p{
  margin:5px 0 0 0;
  color: var(--muted);
  font-size: 14px;
}

.msg{ margin-top: 8px; margin-bottom: 10px; }

.title{
  margin-top: 8px;
  margin-bottom: 12px;
  color: var(--muted);
  font-weight: 700;
  font-size: 15px;
}
.title b{ color:#7d2ae8; }

/* =========================
   INPUTS (no blue selection look)
========================= */

.field{
  margin-top: 14px;
  border: 1px solid rgba(229,231,235,.95);
  border-radius: 14px;
  padding: 12px 14px;
  display:flex;
  align-items:center;
  gap:12px;
  background:#fff;
  height: 54px;
  transition: box-shadow .15s ease, border-color .15s ease;
}

.field:focus-within{
  border-color: rgba(14,165,233,.55);
  box-shadow: 0 0 0 5px rgba(14,165,233,.12);
}

.field i{
  color:#9ca3af;
  width:18px;
  text-align:center;
  flex:0 0 auto;
}

.field input{
  border:0;
  outline:0;
  width:100%;
  background:#ffffff !important;
  background-image:none !important;
  font-size:15px;
  color: var(--text);
}

/* stop autofill coloring (Chrome/Edge) */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active{
  -webkit-box-shadow: 0 0 0 1000px #ffffff inset !important;
  box-shadow: 0 0 0 1000px #ffffff inset !important;
  -webkit-text-fill-color:#0f172a !important;
}

/* eye icon */
.toggle-pass{
  cursor:pointer;
  user-select:none;
  font-size: 14px;
  opacity:.65;
  padding: 6px 8px;
  border-radius: 10px;
}
.toggle-pass:hover{
  opacity:1;
  background:#f1f5f9;
}

/* remember + forgot */
.row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-top: 14px;
  gap:14px;
}

.remember{
  display:flex;
  align-items:center;
  gap:10px;
  color: var(--muted);
  font-size: 13px;
}
.remember input{ width:18px; height:18px; }

.forgot{
  color: var(--link);
  text-decoration:none;
  font-weight: 800;
  font-size: 13px;
}
.forgot:hover{ text-decoration:underline; }

/* button */
.btn{
  margin-top: 18px;
  width:100%;
  height: 56px;
  border:0;
  border-radius: 14px;
  background: var(--accent);
  color:#fff;
  font-weight: 900;
  font-size: 16px;
  cursor:pointer;
  transition: background .15s ease, box-shadow .15s ease, transform .05s ease;
  box-shadow: 0 10px 22px rgba(245,158,11,.25);
}
.btn:hover{
  background: var(--accentHover);
  box-shadow: 0 14px 28px rgba(245,158,11,.30);
}
.btn:active{ transform: translateY(1px); }

.btn.ghost{
  background:#f1f5f9;
  color:#0f172a;
  box-shadow:none;
}
.btn.ghost:hover{ background:#e2e8f0; }

/* quotes line */
.quotes{
  margin-top: 12px;
  text-align:center;
  color: var(--muted);
  font-size: 13px;
}
.quotes a{
  color: var(--link);
  font-weight: 900;
  text-decoration:none;
}
.quotes a:hover{ text-decoration:underline; }

.divider{
  margin-top: 18px;
  border-top: 1px solid rgba(229,231,235,.95);
}

.footer{
  margin-top: 14px;
  text-align:center;
  color: var(--muted2);
  font-size: 12px;
}

/* =========================
   MODAL (this fixes your output!)
========================= */

.modal{
  position:fixed;
  inset:0;
  background: rgba(2,6,23,.55);
  display:none;
  align-items:center;
  justify-content:center;
  padding: 20px;
  z-index:9999;          /* ✅ stays on top */
}

.modal.show{ display:flex; }

.modal-card{
  width: min(560px, 100%);
  background:#fff;
  border-radius: 18px;
  border:1px solid rgba(229,231,235,.95);
  box-shadow: var(--shadow);
  overflow:hidden;
}

.modal-head{
  padding: 14px 16px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  border-bottom: 1px solid rgba(229,231,235,.95);
}

.modal-head h3{
  margin:0;
  font-size: 16px;
}

.modal-head .x{
  border:0;
  background:transparent;
  font-size: 26px;
  line-height: 1;
  cursor:pointer;
  opacity:.7;
}
.modal-head .x:hover{ opacity:1; }

.modal-body{
  padding: 16px;
  color:#374151;
}

.modal-body p{
  margin:0 0 10px 0;
  line-height:1.65;
  font-size: 14px;
}

.modal-foot{
  padding: 14px 16px;
  border-top: 1px solid rgba(229,231,235,.95);
  display:flex;
  justify-content:flex-end;
  gap:10px;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 980px){
  .page{ grid-template-columns:1fr; }
  .left{ min-height: 42vh; }
  .left-inner{ align-items:flex-end; }
}