:root {
  --primary: #2563eb;
  --primary-700: #1d4ed8;
  --primary-dark: #1d4ed8;
  --accent: #7c3aed;
  --ink: #0f172a;
  --muted: #64748b;
  --line: #dbe5f1;
  --bg-page: #f4f7fb;
  --bg-topbar: linear-gradient(135deg, #0f172a 0%, #172554 55%, #1e1b4b 100%);
  --bg-sidebar: #eef2f7;
  --text-900: #0f172a;
  --text-700: #334155;
  --text-500: #64748b;
  --text-inverse: #e2e8f0;
  --border: #e2e8f0;
  --radius-lg: 14px;
  --radius-md: 12px;
  --shadow-sm: 0 6px 16px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 12px 30px rgba(15, 23, 42, 0.1);
  --transition-fast: 0.2s ease;
  --transition-mid: 0.28s ease;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* Shared auth page surface */
body.instructor-login-page,
body.instructor-register-page {
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 12%, rgba(37, 99, 235, 0.12), transparent 34%),
    radial-gradient(circle at 92% 84%, rgba(14, 165, 233, 0.12), transparent 35%),
    linear-gradient(145deg, #f4f8ff 0%, #eff4fb 60%, #ffffff 100%);
  min-height: 100vh;
}
.logo-brand {
 
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-bottom: 18px;
  text-decoration: none;
  line-height: 0;
}

.brand__logo {
  display: block;
  width: auto;
  height: auto;
  max-width: min(230px, 100%);
  max-height: 62px;
  object-fit: contain;
  object-position: left top;
}
.login-shell,
.register-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.login-card,
.register-card {
  width: min(1140px, 100%);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.12);
}

.register-card {
  width: min(1200px, 100%);
}

.login-form-pane,
.register-form-pane {
  padding: 28px;
}

.login-form-wrap,
.register-form-wrap {
  max-width: 560px;
}

.login-eyebrow,
.register-eyebrow {
  margin: 0 0 7px;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--primary);
  font-weight: 700;
}

.login-lead,
.register-lead {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.login-brand,
.register-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  text-decoration: none;
}

.login-brand__icon,
.register-brand__icon {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), #38bdf8);
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.32);
}

.login-brand__text,
.register-brand__text {
  color: var(--ink);
  font-weight: 800;
  letter-spacing: -0.01em;
}

.form-label {
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 6px;
}

.form-control,
.form-select {
  min-height: 46px;
  border-color: #d7e3f3;
  border-radius: 12px;
  padding-inline: 12px;
}

.form-control:focus,
.form-select:focus {
  border-color: rgba(37, 99, 235, 0.5);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.14);
}

.btn-login,
.btn-register {
  min-height: 46px;
  font-weight: 700;
  border: 0;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.28);
  transition: transform 0.22s ease, box-shadow 0.22s ease, filter 0.22s ease;
}

.btn-login:hover,
.btn-register:hover {
  transform: translateY(-1px);
  filter: brightness(1.03);
  box-shadow: 0 16px 28px rgba(37, 99, 235, 0.34);
}

.login-media-pane,
.register-media-pane {
  position: relative;
  display: flex;
  flex-direction: column;
  /*justify-content: space-between;*/
  padding: 28px;
  color: #e2e8f0;
  background: linear-gradient(145deg, #0f172a 0%, #172554 58%, #1e3a8a 100%);
}

.feature-pill {
  margin-top: 14px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #dbeafe;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(255, 255, 255, 0.08);
}

@media (max-width: 991.98px) {

  .brand__logo {
    max-width: min(190px, 82vw);
    max-height: 54px;
  }
  .login-shell,
  .register-shell {
    padding: 14px;
  }

  .login-card,
  .register-card {
    border-radius: 16px;
  }

  .login-form-pane,
  .register-form-pane,
  .login-media-pane,
  .register-media-pane {
    padding: 18px;
  }
}
