/* =========================================================
   MockTest SaaS — Institute Login Page
   ========================================================= */

.mt-login-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

/* ── Left Panel (branding) ──────────────────────────────── */
.mt-login-branding {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 48px;
  overflow: hidden;
  background: var(--surface);
}

.mt-login-branding::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--institute-color, var(--primary));
  opacity: 0.08;
}

.mt-login-branding-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 380px;
}

.mt-login-logo {
  width: 100px;
  height: 100px;
  border-radius: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 42px;
  font-weight: 900;
  color: #fff;
  margin: 0 auto 28px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.3);
  overflow: hidden;
  background: var(--institute-color, var(--primary));
}
.mt-login-logo img { width: 100%; height: 100%; object-fit: cover; }

.mt-login-institute-name {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 10px;
  line-height: 1.2;
}

.mt-login-tagline {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 48px;
}

.mt-login-features {
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-align: left;
}

.mt-login-feature {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--text-secondary);
}

.mt-login-feature-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

/* Decorative blobs */
.mt-login-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.15;
  pointer-events: none;
}
.mt-login-blob-1 {
  width: 300px; height: 300px;
  top: -80px; left: -80px;
  background: var(--institute-color, var(--primary));
}
.mt-login-blob-2 {
  width: 200px; height: 200px;
  bottom: -40px; right: -40px;
  background: var(--secondary);
}

/* ── Right Panel (form) ─────────────────────────────────── */
.mt-login-form-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 48px;
  background: var(--bg);
}

.mt-login-form-wrap {
  width: 100%;
  max-width: 420px;
}

.mt-login-form-header {
  margin-bottom: 36px;
}

.mt-login-form-header h2 {
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 8px;
}

.mt-login-form-header p {
  font-size: 14px;
  color: var(--muted);
}

/* ── Role Tabs ──────────────────────────────────────────── */
.mt-login-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--surface);
  border-radius: var(--radius);
  padding: 4px;
  border: 1px solid var(--border);
  margin-bottom: 32px;
  gap: 4px;
}

.mt-login-tab {
  padding: 10px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  border: none;
  background: transparent;
  color: var(--muted);
  transition: all var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.mt-login-tab.active {
  background: var(--surface-3);
  color: var(--text);
  border: 1px solid var(--border-strong);
}

.mt-login-tab[data-role="manager"].active {
  color: var(--primary);
  border-color: rgba(108,99,255,0.35);
  background: rgba(108,99,255,0.08);
}

.mt-login-tab[data-role="student"].active {
  color: var(--secondary);
  border-color: rgba(0,212,170,0.35);
  background: rgba(0,212,170,0.08);
}

/* ── Form Fields ────────────────────────────────────────── */
.mt-login-form { animation: mtFadeIn 0.3s ease; }

.mt-login-submit {
  width: 100%;
  padding: 13px;
  font-size: 15px;
  border-radius: var(--radius-sm);
  margin-top: 8px;
}

.mt-login-remember {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 20px;
  cursor: pointer;
}
.mt-login-remember input { accent-color: var(--primary); }

.mt-login-footer {
  margin-top: 32px;
  text-align: center;
  font-size: 12px;
  color: var(--muted);
}

.mt-login-footer a { color: var(--primary); }

/* ── Powered by ─────────────────────────────────────────── */
.mt-powered-by {
  position: absolute;
  bottom: 24px;
  right: 24px;
  font-size: 11px;
  color: var(--muted);
  opacity: 0.5;
}

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 768px) {
  .mt-login-page { grid-template-columns: 1fr; }
  .mt-login-branding { display: none; }
  .mt-login-form-panel { padding: 40px 24px; }
  .mt-login-form-wrap { max-width: 100%; }
}
