/**
 * ESHIFT Campus of Higher Studies - Online Certificate Verification Portal
 * Core Design System & Layout Stylesheet (Poppins Typography & Royal Dark Glassmorphism)
 */

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

:root {
  --bg-primary: #020617;
  --bg-secondary: #0b1220;
  --bg-surface: #0f172a;
  --bg-surface-elevated: #1e293b;
  --bg-card: rgba(255, 255, 255, 0.05);
  --bg-card-hover: rgba(255, 255, 255, 0.08);

  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-focus: #6366f1;
  --border-emerald: rgba(52, 211, 153, 0.3);

  --accent-primary: #6366f1;
  --accent-gradient: linear-gradient(135deg, #4f46e5 0%, #7c3aed 50%, #4338ca 100%);
  --accent-gradient-hover: linear-gradient(135deg, #4338ca 0%, #6d28d9 50%, #3730a3 100%);
  
  --emerald-400: #34d399;
  --emerald-500: #10b981;
  --rose-400: #fb7185;
  --rose-500: #f43f5e;
  --amber-400: #fbbf24;

  --text-main: #ffffff;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --text-gradient: linear-gradient(to right, #60a5fa, #ffffff, #c4b5fd);

  --font-sans: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-2xl: 32px;

  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.35);
  --shadow-glow: 0 0 60px rgba(99, 102, 241, 0.15);
  --shadow-emerald: 0 0 30px rgba(16, 185, 129, 0.2);
}

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

html {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(59, 130, 246, 0.22), transparent 28%),
    radial-gradient(circle at top right, rgba(168, 85, 247, 0.18), transparent 30%),
    radial-gradient(circle at bottom left, rgba(14, 165, 233, 0.16), transparent 28%),
    linear-gradient(135deg, #020617 0%, #0f172a 25%, #111827 55%, #1e293b 100%);
  background-attachment: fixed;
  color: var(--text-main);
  overflow-x: hidden;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0), rgba(59, 130, 246, 0.04));
  pointer-events: none;
  z-index: 0;
}

/* Typography Helpers */
.gradient-text {
  background: var(--text-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Glassmorphism Card Effect */
.glass {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow-card);
}

.glass-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.glass-card:hover {
  border-color: rgba(99, 102, 241, 0.3);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

/* Hero Glow Effects */
.hero-glow-wrap {
  position: relative;
  overflow: hidden;
}

.hero-glow-wrap::before {
  content: "";
  position: absolute;
  width: 500px;
  height: 500px;
  background: rgba(59, 130, 246, 0.15);
  border-radius: 50%;
  top: -220px;
  right: -160px;
  filter: blur(80px);
  pointer-events: none;
}

.hero-glow-wrap::after {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  background: rgba(168, 85, 247, 0.12);
  border-radius: 50%;
  bottom: -200px;
  left: -150px;
  filter: blur(80px);
  pointer-events: none;
}

/* Containers */
.container-portal {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1.5rem;
  position: relative;
  z-index: 10;
}

.container-form {
  max-width: 820px;
  margin: 0 auto;
}

/* Header */
.portal-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(2, 6, 23, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  color: inherit;
}

.brand-logo-box {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
  flex-shrink: 0;
}

.brand-logo-img {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.brand-title {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #ffffff;
  line-height: 1.2;
}

.brand-subtitle {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 400;
  margin-top: 2px;
}

.registry-badge {
  text-align: right;
  font-size: 0.75rem;
  color: var(--text-muted);
  display: none;
}

@media (min-width: 768px) {
  .registry-badge {
    display: block;
  }
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
}

.badge-emerald {
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(52, 211, 153, 0.3);
  color: var(--emerald-400);
}

.badge-rose {
  background: rgba(244, 63, 94, 0.15);
  border-color: rgba(251, 113, 133, 0.3);
  color: var(--rose-400);
}

/* Hero Section */
.hero-section {
  text-align: center;
  padding: 3rem 1rem 2rem;
}

.hero-icon-wrap {
  display: inline-flex;
  padding: 1rem;
  border-radius: var(--radius-xl);
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.25);
  color: #818cf8;
  margin-bottom: 1.25rem;
}

.hero-title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.hero-desc {
  color: var(--text-muted);
  margin: 1rem auto 0;
  max-width: 620px;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Verification Form Card */
.verify-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-2xl);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: var(--shadow-glow), 0 20px 50px rgba(0, 0, 0, 0.5);
  padding: 2.25rem;
  margin-top: 1rem;
}

@media (min-width: 768px) {
  .verify-card {
    padding: 3rem;
  }
}

.form-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.form-header h2 {
  font-size: 1.35rem;
  font-weight: 600;
  color: #ffffff;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 500;
  color: #cbd5e1;
  margin-bottom: 0.5rem;
}

.form-label .required {
  color: var(--rose-400);
}

.form-input, .form-select {
  width: 100%;
  height: 52px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  padding: 0 1.25rem;
  color: #ffffff;
  font-family: inherit;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  outline: none;
}

.form-input::placeholder {
  color: #64748b;
}

.form-input:focus, .form-select:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25);
  background: rgba(0, 0, 0, 0.55);
}

/* Custom Select Dropdown */
select.form-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 18px center;
  padding-right: 48px;
  cursor: pointer;
}

select.form-select option {
  background-color: #0b1220;
  color: #ffffff;
  padding: 12px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.25s ease;
  text-decoration: none;
  border: none;
}

.btn-primary {
  width: 100%;
  height: 54px;
  background: var(--accent-gradient);
  color: #ffffff;
  box-shadow: 0 10px 25px rgba(99, 102, 241, 0.35);
  font-size: 1.05rem;
}

.btn-primary:hover:not(:disabled) {
  background: var(--accent-gradient-hover);
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(99, 102, 241, 0.45);
}

.btn-primary:active:not(:disabled) {
  transform: translateY(0);
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-outline-emerald {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(52, 211, 153, 0.3);
  color: var(--emerald-400);
}

.btn-outline-emerald:hover {
  background: rgba(16, 185, 129, 0.2);
  border-color: rgba(52, 211, 153, 0.5);
}

/* Alert Boxes */
.alert {
  padding: 1.25rem;
  border-radius: var(--radius-md);
  margin-top: 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  font-size: 0.92rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  animation: fadeIn 0.3s ease;
}

.alert-danger {
  background: rgba(244, 63, 94, 0.12);
  border: 1px solid rgba(251, 113, 133, 0.3);
  color: #fecdd3;
}

.alert-danger .alert-title {
  color: #fda4af;
  font-weight: 600;
  margin-bottom: 2px;
}

.alert-success {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.3);
  color: #a7f3d0;
}

.alert-warning {
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(251, 191, 36, 0.3);
  color: #fde68a;
}

.verify-top-bar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: 1.5rem;
}

/* ==============================================================
   VERIFIED CERTIFICATE RESULT PAGE (Preserves 3 Verification Portal After Login.html)
   ============================================================== */

.verified-card-main {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
  position: relative;
}

.verified-header-wrap {
  padding: 1.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  z-index: 10;
}

@media (min-width: 768px) {
  .verified-header-wrap {
    padding: 2.5rem;
  }
}

.verified-header-grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  justify-content: space-between;
  align-items: stretch;
}

@media (min-width: 1024px) {
  .verified-header-grid {
    flex-direction: row;
    align-items: flex-start;
  }
}

.inst-brand-col {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.badge-pill-container {
  display: flex;
  align-items: center;
  margin-bottom: 1.25rem;
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(96, 165, 250, 0.3);
  color: #93c5fd;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  line-height: 1.4;
}

.badge-rose {
  background: rgba(244, 63, 94, 0.15);
  border-color: rgba(251, 113, 133, 0.35);
  color: var(--rose-400);
}

.inst-info-group {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  align-items: flex-start;
}

@media (min-width: 640px) {
  .inst-info-group {
    flex-direction: row;
    align-items: flex-start;
    gap: 1.5rem;
  }
}

.inst-logo-box {
  width: 96px;
  height: 96px;
  border-radius: var(--radius-xl);
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
  padding: 8px;
}

.inst-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.inst-text-block {
  flex: 1;
  min-width: 0;
}

.inst-heading-h1 {
  font-size: clamp(1.85rem, 3.2vw, 2.75rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0;
}

.inst-heading-h2 {
  font-size: clamp(1.05rem, 1.8vw, 1.35rem);
  font-weight: 600;
  color: #cbd5e1;
  margin: 0.35rem 0 0 0;
  line-height: 1.35;
}

.inst-slogan {
  font-size: 0.95rem;
  color: #93c5fd;
  font-weight: 500;
  margin-top: 0.45rem;
  letter-spacing: 0.02em;
}

.inst-about-box {
  margin-top: 1rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 0.85rem 1.15rem;
  max-width: 620px;
  font-size: 0.85rem;
  color: #94a3b8;
  line-height: 1.6;
}

/* Verification Reference Box */
.ref-box {
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(59, 130, 246, 0.25);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  width: 100%;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4), 0 0 25px rgba(59, 130, 246, 0.08);
  box-sizing: border-box;
}

@media (min-width: 1024px) {
  .ref-box {
    width: 360px;
    flex-shrink: 0;
  }
}

.ref-box-revoked {
  background: rgba(244, 63, 94, 0.08) !important;
  border-color: rgba(244, 63, 94, 0.35) !important;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4), 0 0 25px rgba(244, 63, 94, 0.08) !important;
}

.ref-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
  font-weight: 600;
}

.ref-status-verified {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #34d399;
}

.ref-status-revoked {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--rose-400);
}

.ref-status-icon {
  flex-shrink: 0;
}

.ref-meta-stack {
  margin-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.ref-meta-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
}

.ref-meta-title {
  color: var(--text-muted);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.ref-cert-number {
  font-size: 0.98rem;
  font-weight: 700;
  color: #93c5fd;
  margin-top: 0.25rem;
  overflow-wrap: anywhere;
  word-break: break-all;
  line-height: 1.45;
  letter-spacing: 0.02em;
}

.ref-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.25rem 0.5rem;
  font-size: 0.85rem;
}

.ref-meta-val-inline {
  font-weight: 600;
  color: #ffffff;
}

.ref-confirm-banner {
  margin-top: 1.25rem;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.25);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.ref-revoked-banner {
  margin-top: 1.25rem;
  background: rgba(244, 63, 94, 0.15);
  border: 1px solid rgba(244, 63, 94, 0.3);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  font-size: 0.8rem;
  color: #fecdd3;
  line-height: 1.5;
}

.pulse-indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--emerald-400);
  box-shadow: 0 0 12px var(--emerald-400);
  animation: pulseDot 2s infinite;
  flex-shrink: 0;
}

@keyframes pulseDot {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

.confirm-title {
  font-weight: 600;
  color: #a7f3d0;
  font-size: 0.88rem;
}

.confirm-desc {
  font-size: 0.78rem;
  color: rgba(167, 243, 208, 0.8);
  margin-top: 2px;
}

/* Two-Column Body Grid */
.verified-body-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding: 2rem;
}

@media (min-width: 1024px) {
  .verified-body-grid {
    grid-template-columns: 360px 1fr;
  }
}

/* Student Profile Card */
.student-avatar-wrap {
  position: relative;
  width: 140px;
  height: 140px;
  margin: 0 auto;
}

.student-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: var(--radius-xl);
  object-fit: cover;
  border: 3px solid rgba(96, 165, 250, 0.3);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  background: #0b1220;
}

.avatar-badge-verified {
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--emerald-500);
  color: #020617;
  padding: 0.2rem 0.8rem;
  border-radius: 9999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 10px rgba(16, 185, 129, 0.4);
}

.avatar-badge-revoked {
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--rose-500);
  color: #ffffff;
  padding: 0.2rem 0.8rem;
  border-radius: 9999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.student-name-title {
  text-align: center;
  margin-top: 1.5rem;
}

.student-name-title h2 {
  font-size: 1.35rem;
  font-weight: 700;
}

.student-name-title p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* Detail Row Items */
.detail-item-box {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  margin-bottom: 0.75rem;
}

.detail-item-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.detail-item-val {
  font-size: 0.95rem;
  font-weight: 600;
  color: #ffffff;
  word-break: break-word;
}

/* QR Code Section Card */
.qr-card-box {
  background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  margin-top: 1.5rem;
}

.qr-header-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.qr-code-holder {
  width: 90px;
  height: 90px;
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  flex-shrink: 0;
}

.qr-code-holder svg, .qr-code-holder img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.qr-text-notice {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 0.85rem;
  font-size: 0.78rem;
  color: #cbd5e1;
  line-height: 1.5;
  margin-top: 1rem;
}

/* Sections in Right Column */
.section-panel {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-xl);
  padding: 1.75rem;
  margin-bottom: 1.5rem;
}

.section-panel-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.info-grid-2col {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 640px) {
  .info-grid-2col {
    grid-template-columns: 1fr 1fr;
  }
}

/* Footer */
.portal-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.35);
  padding: 1.5rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.75rem;
}

@media (min-width: 768px) {
  .portal-footer {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
    padding: 1.5rem 2.5rem;
  }
}

/* Print Styles */
@media print {
  body {
    background: #ffffff !important;
    color: #000000 !important;
  }
  body::before, .portal-header, .portal-footer, .btn, .no-print {
    display: none !important;
  }
  .verified-card-main {
    box-shadow: none !important;
    border: 1px solid #ccc !important;
    color: #000000 !important;
  }
  .inst-heading-h1, .inst-heading-h2, .student-name-title h2, .section-panel-title {
    color: #000000 !important;
    -webkit-text-fill-color: #000000 !important;
  }
  .ref-box, .detail-item-box, .section-panel, .inst-about-box {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    color: #000000 !important;
  }
  .detail-item-val, .ref-meta-value {
    color: #000000 !important;
  }
}

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

/* ==============================================================
   STAFF PORTAL LOGIN & PASSWORD UPDATE STYLES
   ============================================================== */

.staff-login-body {
  min-height: 100vh;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1rem;
  background: radial-gradient(circle at 50% 12%, rgba(59, 130, 246, 0.18) 0%, transparent 65%), #020617;
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  box-sizing: border-box;
  color: #f8fafc;
  overflow-x: hidden;
}

.staff-login-wrapper {
  width: 100%;
  max-width: 440px;
  margin: auto;
  box-sizing: border-box;
}

.staff-login-card {
  width: 100%;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: 2.25rem 2rem;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.8), 0 0 35px rgba(59, 130, 246, 0.08);
  box-sizing: border-box;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.staff-login-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #3b82f6, #6366f1, #8b5cf6);
}

.staff-login-logo-box {
  width: 80px;
  height: 80px;
  border-radius: 20px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem auto;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.2);
  padding: 8px;
  box-sizing: border-box;
  flex-shrink: 0;
}

.staff-login-logo-img {
  width: 100%;
  height: 100%;
  max-width: 64px;
  max-height: 64px;
  object-fit: contain;
  display: block;
}

.staff-login-title {
  font-size: 1.45rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 0.35rem 0;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

.staff-login-subtitle {
  font-size: 0.82rem;
  color: #94a3b8;
  margin: 0 0 1.5rem 0;
  font-weight: 400;
  line-height: 1.4;
}

.staff-form-group {
  margin-bottom: 1.25rem;
  text-align: left;
}

.staff-form-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: #cbd5e1;
  margin-bottom: 0.45rem;
  letter-spacing: 0.01em;
}

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

.staff-input-icon {
  position: absolute;
  left: 1rem;
  color: #64748b;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.staff-form-input {
  width: 100%;
  height: 48px;
  background: rgba(2, 6, 23, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 0 1rem 0 2.75rem;
  color: #ffffff;
  font-size: 0.95rem;
  font-family: inherit;
  transition: all 0.2s ease;
  box-sizing: border-box;
  outline: none;
}

.staff-form-input:focus {
  border-color: #60a5fa;
  box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.25);
  background: rgba(2, 6, 23, 0.85);
}

.staff-btn-submit {
  width: 100%;
  height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #4f46e5 0%, #2563eb 100%);
  color: #ffffff;
  font-size: 0.98rem;
  font-weight: 600;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.35);
  margin-top: 0.5rem;
  text-decoration: none;
}

.staff-btn-submit:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.5);
}

.staff-btn-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

.staff-card-footer {
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
}

.staff-footer-link {
  color: #94a3b8;
  font-size: 0.82rem;
  text-decoration: none;
  transition: color 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.staff-footer-link:hover {
  color: #60a5fa;
}

/* Security notice banner */
.security-update-banner {
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  text-align: left;
  margin-bottom: 1.25rem;
  font-size: 0.82rem;
  color: #fde68a;
  line-height: 1.5;
}

.password-requirements-box {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 0.75rem 0.9rem;
  text-align: left;
  margin-bottom: 1.25rem;
  font-size: 0.75rem;
  color: #94a3b8;
  line-height: 1.6;
}

@media (max-width: 480px) {
  .staff-login-card {
    padding: 1.75rem 1.25rem;
    border-radius: 20px;
  }
  .staff-login-title {
    font-size: 1.25rem;
  }
  .staff-login-logo-box {
    width: 72px;
    height: 72px;
    margin-bottom: 1rem;
  }
  .staff-login-logo-img {
    max-width: 54px;
    max-height: 54px;
  }
}
