/* ============================================
   FLS3N 2026 - Centralized Stylesheet
   ============================================ */

/* ===== Base Styles ===== */
* {
  scroll-behavior: smooth;
}

body {
  background-image:
    linear-gradient(135deg, rgba(102, 126, 234, 0.85) 0%, rgba(118, 75, 162, 0.85) 100%),
    url('../banner.jpeg');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  min-height: 100vh;
  position: relative;
  line-height: 1.6;
  color: #202124;
}

/* ===== Header Banner ===== */
.header-banner {
  background: transparent;
  padding: 2rem 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
  width: 100%;
  min-height: 200px;
}

.header-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: white;
}

.header-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
  letter-spacing: 1px;
  line-height: 1.2;
  color: white !important;
}

.header-subtitle {
  font-size: 1.1rem;
  font-weight: 300;
  opacity: 0.95;
  line-height: 1.5;
  color: white !important;
}

/* ===== Container & Typography Improvements ===== */
.container {
  position: relative;
  z-index: 1;
}

.form-container {
  max-width: 1000px;
  margin: 3rem auto;
  background: rgba(255, 255, 255, 0.98);
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  padding: 3rem;
  position: relative;
  z-index: 1;
  backdrop-filter: blur(10px);
  animation: slideUp 0.8s ease-out;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== Enhanced Typography ===== */
.form-header {
  border-bottom: 2px solid #e0e0e0;
  padding-bottom: 2rem;
  margin-bottom: 2.5rem;
}

.form-header .d-flex {
  flex-wrap: wrap;
  gap: 1rem;
}

.form-title {
  font-size: 2.5rem;
  font-weight: 600;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0;
  line-height: 1.3;
  letter-spacing: -0.5px;
}

.form-subtitle {
  color: #6b7280;
  font-size: 1.05rem;
  margin-top: 0.75rem;
  line-height: 1.7;
  font-weight: 400;
  letter-spacing: 0.01em;
}

.form-subtitle strong {
  color: #667eea;
  font-weight: 600;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== Enhanced Header Content Styling Only ===== */
/* Styling khusus untuk header content saja - tidak mempengaruhi form container */
.header-content h1,
.header-content h2,
.header-content h3,
.header-content h4,
.header-content h5,
.header-content h6,
.header-content p,
.header-content span {
  color: white !important;
}

/* Enhanced header title dengan efek lebih menarik */
.header-content .header-title {
  text-shadow: 2px 2px 12px rgba(0, 0, 0, 0.4), 0 0 30px rgba(0, 0, 0, 0.3);
  animation: fadeInUp 0.8s ease-out;
  letter-spacing: 1.5px;
}

/* Enhanced header subtitle dengan efek lebih menarik */
.header-content .header-subtitle {
  text-shadow: 1px 1px 6px rgba(0, 0, 0, 0.3);
  letter-spacing: 0.5px;
  font-weight: 300;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== Cards ===== */
.cabang-card {
  border: 2px solid #e0e0e0;
  border-radius: 15px;
  padding: 2rem;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  height: 100%;
  background: white;
  position: relative;
  overflow: hidden;
}

.cabang-card .text-muted {
  color: #6b7280 !important;
  font-size: 0.9rem;
  line-height: 1.6;
  font-weight: 400;
}

.cabang-card .text-muted strong {
  color: #667eea;
  font-weight: 700;
  font-size: 1rem;
}

.cabang-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.1), transparent);
  transition: left 0.5s;
}

.cabang-card:hover::before {
  left: 100%;
}

.cabang-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 15px 40px rgba(102, 126, 234, 0.3);
  border-color: #667eea;
}

.cabang-title {
  font-size: 1.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
  position: relative;
  line-height: 1.4;
  letter-spacing: -0.02em;
  transition: all 0.3s;
}

.cabang-card:hover .cabang-title {
  transform: translateX(5px);
}

.badge {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 20px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  font-family: 'Poppins', sans-serif;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: all 0.3s;
}

.badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* ===== Info Box ===== */
.info-box {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
  border: 2px solid rgba(102, 126, 234, 0.2);
  border-radius: 15px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  transition: all 0.3s;
}

.info-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(102, 126, 234, 0.2);
}

.info-box-item {
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(102, 126, 234, 0.1);
}

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

.info-box-item .small {
  color: #6b7280;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 0.5rem;
  font-family: 'Poppins', sans-serif;
}

.info-box-item .fw-semibold {
  color: #1a1a1a;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.5;
}

/* ===== Forms ===== */
.form-control {
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  padding: 0.875rem;
  font-size: 0.95rem;
  transition: all 0.3s;
  font-family: 'Poppins', sans-serif;
}

.form-control:focus {
  border-color: #667eea;
  box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.2);
  transform: translateY(-2px);
  outline: none;
}

.form-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 0.75rem;
  display: block;
  letter-spacing: -0.01em;
}

.form-label .text-danger {
  color: #ef4444 !important;
  font-weight: 700;
}

.form-text {
  font-size: 0.875rem;
  color: #6b7280;
  margin-top: 0.5rem;
  line-height: 1.6;
  font-style: italic;
  letter-spacing: 0.01em;
}

/* ===== Buttons ===== */
.btn-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none;
  border-radius: 10px;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  transition: all 0.3s;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
  position: relative;
  overflow: hidden;
  color: white !important;
  font-family: 'Poppins', sans-serif;
  font-size: 0.95rem;
}

.btn-primary,
.btn-primary *,
.btn-primary span {
  color: white !important;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn-primary:hover::before {
  width: 300px;
  height: 300px;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
  color: white !important;
}

.btn-primary:hover,
.btn-primary:hover *,
.btn-primary:hover span {
  color: white !important;
}

.btn-primary span {
  position: relative;
  z-index: 1;
  color: white !important;
}

.btn-outline-primary {
  color: #667eea;
  border: 2px solid #667eea;
  border-radius: 10px;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  transition: all 0.3s;
  background: white;
  font-family: 'Poppins', sans-serif;
  font-size: 0.95rem;
}

.btn-outline-primary:hover {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
  border-color: transparent;
}

.btn-outline-primary:hover,
.btn-outline-primary:hover * {
  color: white !important;
}

.btn-outline-secondary {
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  font-weight: 600;
  padding: 0.875rem 2rem;
  transition: all 0.3s;
  color: #202124;
  font-family: 'Poppins', sans-serif;
}

.btn-outline-secondary:hover {
  background: #f8f9fa;
  border-color: #667eea;
  color: #667eea;
  transform: translateY(-2px);
}

.btn-link {
  color: #667eea;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s;
  font-family: 'Poppins', sans-serif;
}

.btn-link:hover {
  color: #764ba2;
  transform: translateX(-5px);
}

/* ===== User Info ===== */
/* ===== User Section ===== */
.user-section {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.user-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.08) 0%, rgba(118, 75, 162, 0.08) 100%);
  padding: 0.75rem 1.25rem;
  border-radius: 12px;
  border: 2px solid rgba(102, 126, 234, 0.15);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.user-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.1), transparent);
  transition: left 0.5s;
}

.user-card:hover::before {
  left: 100%;
}

.user-card:hover {
  border-color: rgba(102, 126, 234, 0.3);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
  transform: translateY(-2px);
}

.user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.user-details {
  flex: 1;
  min-width: 0;
}

.user-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.3;
  margin-bottom: 0.15rem;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-class {
  font-size: 0.8rem;
  color: #6b7280;
  font-weight: 500;
  line-height: 1.2;
}

.btn-logout {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(102, 126, 234, 0.1);
  color: #667eea;
  border: 1px solid rgba(102, 126, 234, 0.2);
  transition: all 0.3s ease;
  text-decoration: none;
  flex-shrink: 0;
}

.btn-logout:hover {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-color: transparent;
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.btn-login {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
  border: none;
}

.btn-login:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
  color: white;
}

.btn-login svg {
  flex-shrink: 0;
}

/* ===== Registration Timeline ===== */
.registration-timeline {
  margin-bottom: 3rem;
  padding-top: 2rem;
  padding-bottom: 2.5rem;
  border-bottom: 2px solid #e0e0e0;
}

.timeline-container {
  position: relative;
  padding: 2rem 0;
}

.timeline-container::before {
  content: '';
  position: absolute;
  left: 30px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, #667eea 0%, #764ba2 100%);
  border-radius: 2px;
}

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

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-number {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  flex-shrink: 0;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
  position: relative;
  z-index: 1;
  border: 4px solid white;
}

.timeline-content {
  flex: 1;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.98) 100%),
    linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
  padding: 1.5rem;
  border-radius: 12px;
  border: 2px solid rgba(102, 126, 234, 0.15);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.timeline-item:hover .timeline-content {
  border-color: rgba(102, 126, 234, 0.3);
  box-shadow: 0 4px 20px rgba(102, 126, 234, 0.15);
  transform: translateX(5px);
}

.timeline-item:hover .timeline-number {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

.timeline-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 0.5rem 0;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.timeline-description {
  font-size: 0.95rem;
  color: #4b5563;
  line-height: 1.7;
  margin: 0;
}

.timeline-description strong {
  color: #667eea;
  font-weight: 600;
}

/* ===== My Registrations ===== */
.my-registrations {
  margin-bottom: 3rem;
  padding-top: 2rem;
  padding-bottom: 2.5rem;
  border-bottom: 2px solid #e0e0e0;
}

.cabang-list-section {
  padding-top: 2.5rem;
}

.registration-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.5rem;
}

.registration-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.98) 100%),
    linear-gradient(135deg, rgba(102, 126, 234, 0.08) 0%, rgba(118, 75, 162, 0.08) 100%);
  border: 2px solid rgba(102, 126, 234, 0.2);
  border-radius: 12px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.registration-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.1), transparent);
  transition: left 0.5s;
}

.registration-item:hover::before {
  left: 100%;
}

.registration-item:hover {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 1) 100%),
    linear-gradient(135deg, rgba(102, 126, 234, 0.12) 0%, rgba(118, 75, 162, 0.12) 100%);
  border-color: rgba(102, 126, 234, 0.35);
  box-shadow: 0 4px 20px rgba(102, 126, 234, 0.25);
  transform: translateY(-2px);
}

.registration-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.registration-content {
  flex: 1;
  min-width: 0;
}

.registration-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}

.registration-cabang {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0;
  line-height: 1.3;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.registration-badge {
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.registration-badge.badge-success {
  background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
  color: white;
}

.registration-badge.badge-warning {
  background: linear-gradient(135deg, #ed8936 0%, #dd6b20 100%);
  color: white;
}

.registration-details {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.875rem;
}

.registration-role,
.registration-tim,
.registration-date {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.role-label,
.tim-label,
.date-label {
  color: #6b7280;
  font-weight: 500;
}

.role-value {
  color: #1a1a1a;
  font-weight: 600;
  padding: 0.25rem 0.5rem;
  background: rgba(102, 126, 234, 0.1);
  border-radius: 4px;
}

.tim-value {
  color: #1a1a1a;
  font-weight: 600;
}

.tim-code {
  color: #667eea;
  font-weight: 600;
  font-family: 'Courier New', monospace;
  font-size: 0.8rem;
  padding: 0.2rem 0.4rem;
  background: rgba(102, 126, 234, 0.1);
  border-radius: 4px;
}

.tim-status {
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.tim-status.status-open {
  background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
  color: white;
}

.tim-status.status-locked {
  background: linear-gradient(135deg, #f56565 0%, #e53e3e 100%);
  color: white;
}

.date-value {
  color: #6b7280;
  font-weight: 500;
}

/* Legacy user-info (untuk kompatibilitas) */
.user-info {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
  padding: 1rem 1.5rem;
  border-radius: 10px;
  border: 1px solid rgba(102, 126, 234, 0.2);
}

.user-info .fw-semibold {
  color: #1a1a1a;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.01em;
}

.user-info .text-muted {
  color: #6b7280 !important;
  font-size: 0.875rem;
  font-weight: 500;
}

/* ===== Tables ===== */
.table {
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  overflow: hidden;
}

.table thead {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
}

.table tbody tr {
  transition: all 0.2s;
}

.table tbody tr:hover {
  background: rgba(102, 126, 234, 0.05);
  transform: scale(1.01);
}

.table th,
.table td {
  padding: 1rem;
  vertical-align: middle;
  color: #1a1a1a;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  line-height: 1.6;
}

.table th {
  font-weight: 700;
  color: #1a1a1a;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
}

/* ===== Section Titles ===== */
.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-top: 3rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid #e0e0e0;
  line-height: 1.4;
  letter-spacing: -0.02em;
  position: relative;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 80px;
  height: 3px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 2px;
}

/* ===== Success Page ===== */
.success-icon {
  font-size: 5rem;
  color: #34a853;
  margin-bottom: 2rem;
  animation: bounceIn 0.8s ease-out;
}

@keyframes bounceIn {
  0% {
    transform: scale(0);
    opacity: 0;
  }

  50% {
    transform: scale(1.2);
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.success-title {
  font-size: 2.5rem;
  font-weight: 600;
  background: linear-gradient(135deg, #34a853 0%, #0f9d58 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.success-subtitle {
  color: #5f6368;
  font-size: 1.1rem;
  margin-bottom: 2.5rem;
  line-height: 1.6;
}

.code-box {
  background: linear-gradient(135deg, rgba(255, 193, 7, 0.2) 0%, rgba(255, 152, 0, 0.2) 100%);
  border: 3px solid #ffc107;
  border-radius: 15px;
  padding: 2rem;
  margin: 2.5rem 0;
  box-shadow: 0 10px 30px rgba(255, 193, 7, 0.3);
  transition: all 0.3s;
}

.code-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(255, 193, 7, 0.4);
}

.code-display {
  font-size: 2.5rem;
  font-weight: 700;
  color: #202124;
  letter-spacing: 0.3rem;
  font-family: 'Courier New', monospace;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}

/* ===== Alerts ===== */
.alert {
  border-radius: 10px;
  padding: 1rem 1.25rem;
  line-height: 1.7;
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  border-left: 4px solid;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.alert-danger {
  background: linear-gradient(135deg, rgba(254, 226, 226, 0.8) 0%, rgba(254, 202, 202, 0.8) 100%);
  border-color: #ef4444;
  color: #991b1b;
  font-weight: 500;
}

.alert-info {
  background: linear-gradient(135deg, rgba(227, 242, 253, 0.8) 0%, rgba(144, 202, 249, 0.8) 100%);
  border-color: #3b82f6;
  color: #1e40af;
  font-weight: 500;
}

.alert-warning {
  background: linear-gradient(135deg, rgba(255, 243, 205, 0.8) 0%, rgba(255, 193, 7, 0.8) 100%);
  border-color: #f59e0b;
  color: #92400e;
  font-weight: 500;
}

.alert strong {
  font-weight: 700;
  color: inherit;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {

  /* Mobile: Background crop dengan cover */
  body {
    background-size: cover;
    background-position: center center;
  }

  .header-banner {
    padding: 1.5rem 0;
    min-height: 180px;
  }

  .header-title {
    font-size: 2rem;
  }

  .header-subtitle {
    font-size: 0.95rem;
  }

  .form-container {
    padding: 2rem 1.5rem;
    margin: 2rem auto;
  }

  .form-header {
    flex-direction: column;
    gap: 1.5rem;
  }

  .form-header>div:first-child {
    width: 100%;
  }

  .form-title {
    font-size: 2rem;
  }

  .form-subtitle {
    font-size: 0.95rem;
  }

  .cabang-title {
    font-size: 1.25rem;
  }

  .success-title {
    font-size: 2rem;
  }

  .code-display {
    font-size: 2rem;
  }

  /* User section mobile */
  .user-section {
    flex-direction: column;
    align-items: flex-end;
    width: 100%;
  }

  .user-card {
    width: 100%;
    max-width: 280px;
  }

  .user-name {
    font-size: 0.9rem;
  }

  .user-class {
    font-size: 0.75rem;
  }

  .btn-login {
    width: 100%;
    justify-content: center;
  }

  /* My registrations mobile */
  .my-registrations {
    margin-bottom: 2rem;
  }

  .registration-item {
    padding: 1rem;
    flex-direction: column;
    align-items: flex-start;
  }

  .registration-icon {
    width: 40px;
    height: 40px;
  }

  .registration-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .registration-cabang {
    font-size: 1rem;
  }

  .registration-details {
    font-size: 0.8rem;
  }

  /* Timeline mobile */
  .registration-timeline {
    margin-bottom: 2rem;
  }

  .timeline-container::before {
    left: 25px;
  }

  .timeline-item {
    gap: 1rem;
    padding-left: 0.5rem;
  }

  .timeline-number {
    width: 50px;
    height: 50px;
    font-size: 1.25rem;
  }

  .timeline-content {
    padding: 1.25rem;
  }

  .timeline-title {
    font-size: 1.1rem;
  }

  .timeline-description {
    font-size: 0.875rem;
  }
}

@media (min-width: 769px) {

  /* Desktop: Background menyesuaikan lebar */
  body {
    background-size: 100% auto;
    background-position: center top;
  }

  .header-banner {
    min-height: 250px;
  }
}