/* ===== HealTech Educa — Auth pages (login / register / forgot / reset) ===== */
* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Inter', sans-serif; }
body.authx { display: flex; min-height: 100vh; color: #1a1a1a; }

/* ===== LEFT (navy hero) ===== */
.authx .left {
  flex: 1; color: #fff;
  /* image1.png background with a warm ORANGE overlay for text readability */
  background:
    linear-gradient(135deg, rgba(194,65,12,.66), rgba(234,88,12,.54) 55%, rgba(249,115,22,.44)),
    url("../images/image1.png") center / cover no-repeat;
  padding: clamp(40px, 6vw, 80px); display: flex; flex-direction: column; justify-content: center;
  position: relative; overflow: hidden;
  text-shadow: 0 1px 14px rgba(0,0,0,.35);
}
.authx .left::before {
  content: ""; position: absolute; width: 400px; height: 400px;
  background: radial-gradient(circle, #ffd166, transparent); top: -100px; left: -100px; opacity: .35;
}
.authx .left::after {
  content: ""; position: absolute; width: 300px; height: 300px;
  background: radial-gradient(circle, #ff5e3a, transparent); bottom: -100px; right: -100px; opacity: .35;
}
.authx .left small { position: relative; opacity: .75; margin-bottom: 20px; letter-spacing: 1.5px; text-transform: uppercase; font-weight: 600; font-size: 14px; }
.authx .left h1 { position: relative; font-size: clamp(2rem, 3.4vw, 48px); font-weight: 500; margin-bottom: 20px; line-height: 1.15; }
.authx .left p  { position: relative; max-width: 420px; line-height: 1.6; opacity: .82; }

/* ===== RIGHT (form) ===== */
.authx .right { flex: 1; background: #f9f9f9; display: flex; justify-content: center; align-items: center; position: relative; padding: 40px 24px; }
.login-box { width: 360px; max-width: 100%; }
.login-box a.back { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 22px; text-decoration: none; color: #555; font-size: 14px; }
.login-box a.back svg { width: 16px; height: 16px; }
.login-box a.back:hover { color: #111; }
.login-box h2 { font-size: 28px; font-weight: 600; margin-bottom: 5px; }
.login-box .sub { color: #777; margin-bottom: 22px; font-size: 14px; }

.login-box label { display: block; font-size: 13px; font-weight: 500; color: #444; margin-bottom: 6px; }
.login-box input {
  width: 100%; padding: 12px 14px; margin-bottom: 15px; border-radius: 8px; border: 1px solid #ddd;
  outline: none; transition: .25s; font-size: 14px; background: #fff;
}
.login-box input:focus { border-color: #2c6bed; box-shadow: 0 0 0 3px rgba(44,107,237,.18); }

.login-box a.reset { display: block; text-align: right; font-size: 13px; margin-bottom: 20px; color: #2c6bed; text-decoration: none; }
.login-box a.reset:hover { text-decoration: underline; }

.login-box button {
  width: 100%; padding: 13px; border: none; background: #2c6bed; color: #fff; border-radius: 25px;
  font-weight: 600; cursor: pointer; transition: .25s; font-size: 15px;
}
.login-box button:hover { background: #1a4ed8; }

.divider { text-align: center; margin: 20px 0; color: #aaa; font-size: 14px; }

.google-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  border: 1px solid #ddd; padding: 11px; border-radius: 25px; cursor: pointer; transition: .25s;
  text-decoration: none; color: #333; font-size: 14px; font-weight: 500; background: #fff;
}
.google-btn:hover { background: #f1f1f1; }

.signup { text-align: center; margin-top: 20px; font-size: 14px; color: #555; }
.signup a { color: #2c6bed; text-decoration: none; font-weight: 600; }
.signup a:hover { text-decoration: underline; }

/* Paired fields (2 per row) to save height */
.frow { display: flex; gap: 14px; }
.frow > div { flex: 1; min-width: 0; }

/* Language switcher */
.authx .lang { position: absolute; top: 16px; right: 18px; display: flex; gap: 3px; }
.authx .lang a { font-size: 12px; font-weight: 700; padding: 5px 8px; border-radius: 6px; color: #666; text-decoration: none; transition: .2s; }
.authx .lang a:hover { background: #ececec; color: #111; }
.authx .lang a.active { background: #0d2b63; color: #fff; }

/* Reset step toggle */
.steps { display: flex; gap: 6px; background: #ececec; padding: 4px; border-radius: 25px; margin-bottom: 20px; }
.steps button { flex: 1; padding: 8px 10px; border: none; background: transparent; border-radius: 25px; font-size: 13px; font-weight: 600; color: #666; cursor: pointer; transition: .2s; }
.steps button.active { background: #fff; color: #111; box-shadow: 0 1px 4px rgba(0,0,0,.12); }

/* Flash */
.flash-msg { padding: 10px 14px; border-radius: 8px; margin-bottom: 16px; font-size: 13px; }
.flash-msg.error   { background: #fee2e2; color: #b91c1c; }
.flash-msg.success { background: #dcfce7; color: #166534; }

/* ===== Admin login (dark, restricted "control panel" feel) ===== */
body.adminx {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden; padding: 24px; color: #e5e7eb;
  background:
    radial-gradient(60% 55% at 50% -5%, rgba(245,158,11,.12), transparent 60%),
    radial-gradient(55% 55% at 50% 105%, rgba(37,99,235,.12), transparent 60%),
    linear-gradient(160deg, rgba(11,15,26,.92), rgba(15,24,48,.90) 60%, rgba(11,15,26,.94)),
    url("../images/image1.png") center / cover no-repeat fixed;
}
body.adminx::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 44px 44px; opacity: .5;
  -webkit-mask-image: radial-gradient(70% 70% at 50% 40%, #000, transparent);
          mask-image: radial-gradient(70% 70% at 50% 40%, #000, transparent);
}
.admin-card {
  position: relative; z-index: 1; width: 100%; max-width: 400px;
  background: rgba(17,24,39,.85); border: 1px solid rgba(255,255,255,.09);
  border-radius: 18px; padding: 38px 34px;
  box-shadow: 0 30px 70px -20px rgba(0,0,0,.75); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.admin-card__badge {
  width: 56px; height: 56px; border-radius: 16px; margin: 0 auto 18px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #f59e0b, #d97706); color: #1a1a1a;
  box-shadow: 0 12px 26px -8px rgba(245,158,11,.55);
}
.admin-card__badge svg { width: 28px; height: 28px; }
.admin-card h1 { font-size: 1.5rem; font-weight: 600; text-align: center; color: #fff; margin-bottom: 6px; }
.admin-card .sub { text-align: center; color: #94a3b8; font-size: .875rem; margin-bottom: 26px; }
.admin-card label { display: block; font-size: 13px; font-weight: 500; color: #cbd5e1; margin-bottom: 6px; }
.admin-card .ifield { position: relative; margin-bottom: 16px; }
.admin-card .ifield > svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); width: 17px; height: 17px; color: #64748b; }
.admin-card input {
  width: 100%; padding: 12px 12px 12px 40px; border-radius: 10px;
  background: #0b1220; border: 1px solid #1f2a44; color: #e5e7eb; outline: none; font-size: 14px; transition: .2s;
}
.admin-card input:focus { border-color: #f59e0b; box-shadow: 0 0 0 3px rgba(245,158,11,.18); }
.admin-card button {
  width: 100%; padding: 13px; border: none; border-radius: 10px; margin-top: 6px;
  background: #fff; color: #0b0f1a; font-weight: 700; font-size: 15px; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 8px; transition: .2s;
}
.admin-card button:hover { background: #f59e0b; }
.admin-card button svg { width: 16px; height: 16px; }
.admin-foot { text-align: center; margin-top: 20px; font-size: 13px; color: #94a3b8; }
.admin-foot a { color: #f59e0b; text-decoration: none; font-weight: 600; }
.admin-foot a:hover { text-decoration: underline; }
.admin-lang { position: absolute; top: 18px; right: 20px; display: flex; gap: 3px; z-index: 2; }
.admin-lang a { font-size: 12px; font-weight: 700; padding: 5px 8px; border-radius: 6px; color: #94a3b8; text-decoration: none; transition: .2s; }
.admin-lang a:hover { background: rgba(255,255,255,.08); color: #fff; }
.admin-lang a.active { background: #f59e0b; color: #1a1a1a; }
.admin-flash { padding: 10px 14px; border-radius: 10px; margin-bottom: 16px; font-size: 13px; }
.admin-flash.error { background: rgba(239,68,68,.15); color: #fca5a5; border: 1px solid rgba(239,68,68,.3); }
.admin-flash.success { background: rgba(34,197,94,.15); color: #86efac; }

/* ===== Responsive (portrait / mobile) ===== */
@media (max-width: 900px) {
  body.authx { flex-direction: column; }
  .authx .left { padding: 32px 28px; text-align: center; align-items: center; }
  .authx .left p { max-width: none; }
  /* Compact hero on mobile: keep only the eyebrow + main headline */
  .authx .left .hero-p { display: none; }
  .authx .left .h1-suffix { display: none; }
  .authx .left h1 { margin-bottom: 0; }
  .authx .right { padding: 32px 20px 44px; }
  .login-box { width: 100%; max-width: 420px; }
  .frow { flex-direction: column; gap: 0; }
}
