/* Exam Login & Registration Styling */
:root {
  --primary: #1e3a8a;
  --primary-hover: #1e40af;
  --accent: #d97706;
  --bg-gradient: linear-gradient(135deg, #0f172a 0%, #1e3a8a 50%, #1e1b4b 100%);
  --card-bg: rgba(255, 255, 255, 0.98);
  --border-color: #e2e8f0;
  --text-dark: #1e293b;
  --text-muted: #64748b;
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.exam-portal-section {
  padding: 130px 0 4rem;
  background-color: #f8fafc;
}

.exam-portal-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: start;
}

@media (min-width: 992px) {
  .exam-portal-grid {
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
  }
}

/* Left Column: Info */
.exam-portal-info {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.portal-intro h2 {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 1rem;
  font-family: 'Playfair Display', serif;
}

.portal-intro p {
  color: var(--text-dark);
  font-size: 1.05rem;
  line-height: 1.6;
}

.workflow-timeline {
  background: #fff;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--border-color);
}

.workflow-timeline h3 {
  font-size: 1.25rem;
  color: var(--primary);
  margin-bottom: 1.5rem;
  border-bottom: 2px solid #e2e8f0;
  padding-bottom: 0.75rem;
}

.timeline-step {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
  position: relative;
}

.timeline-step:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 1.15rem;
  top: 2.5rem;
  bottom: -1rem;
  width: 2px;
  background-color: #e2e8f0;
}

.step-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #eff6ff;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
  z-index: 1;
}

.step-content h4 {
  font-size: 1rem;
  color: var(--text-dark);
  margin-bottom: 0.25rem;
  font-weight: 600;
}

.step-content p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.4;
}

.trust-badges {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.trust-badges .badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: #fff;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  color: var(--primary);
  font-weight: 500;
  font-size: 0.95rem;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

/* Right Column: Auth Col */
.exam-auth-col {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.exam-auth-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  position: relative;
}

.exam-auth-header {
  background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
  color: #ffffff;
  padding: 2.5rem 2rem 2rem;
  text-align: center;
  position: relative;
}

.exam-auth-icon {
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 1.5rem;
  color: #fbbf24;
  backdrop-filter: blur(4px);
}

.exam-auth-header h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #ffffff;
}

.exam-auth-header p {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
}

.exam-auth-tabs {
  display: flex;
  background: #f1f5f9;
  padding: 0.25rem;
  border-bottom: 1px solid var(--border-color);
}

.exam-auth-tab {
  flex: 1;
  padding: 0.85rem;
  text-align: center;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-muted);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  border-radius: 8px;
}

.exam-auth-tab.active {
  background: #ffffff;
  color: var(--primary);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.exam-auth-body {
  padding: 2rem;
}

.exam-auth-form {
  display: none;
}

.exam-auth-form.active {
  display: block;
}

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

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.375rem;
}

.input-with-icon {
  position: relative;
}

.input-with-icon i {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 0.95rem;
}

.input-with-icon input {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 2.5rem;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  outline: none;
}

.input-with-icon input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
}

.auth-alert {
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-size: 0.875rem;
  margin-bottom: 1.25rem;
  display: none;
  align-items: center;
  gap: 0.5rem;
}

.auth-alert-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #dc2626;
}

.auth-alert-success {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #16a34a;
}

.btn-auth-submit {
  width: 100%;
  padding: 0.85rem;
  background: var(--primary);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-auth-submit:hover {
  background: var(--primary-hover);
}

.auth-footer-note {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.auth-footer-note a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}

.auth-footer-note a:hover {
  text-decoration: underline;
}

.portal-important-notes .note-box {
  background: #fffbeb;
  border-left: 4px solid #f59e0b;
  padding: 1rem;
  border-radius: 0 8px 8px 0;
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  font-size: 0.9rem;
  color: #92400e;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.portal-important-notes .note-box i {
  color: #d97706;
  font-size: 1.2rem;
  margin-top: 0.1rem;
}

.portal-faqs {
  background: #fff;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  border: 1px solid var(--border-color);
}

.portal-faqs h3 {
  font-size: 1.15rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

.faq-item {
  border-bottom: 1px solid #e2e8f0;
  padding: 0.75rem 0;
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-item summary {
  font-weight: 600;
  color: var(--text-dark);
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 1.5rem;
  font-size: 0.95rem;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  color: var(--primary);
  font-size: 1.2rem;
  font-weight: 400;
}

.faq-item[open] summary::after {
  content: '-';
}

.faq-item p {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}
