/* ===== Modern Authentication Page ===== */

.auth-page-modern {
  min-height: 100vh;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
  padding: 3rem 0;
  position: relative;
  overflow: hidden;
}

.auth-page-modern::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(circle at 20% 50%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(139, 92, 246, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.auth-modern-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 1;
}

/* Hero Section */
.auth-hero-modern {
  text-align: center;
  margin-bottom: 3rem;
  animation: fadeInDown 0.8s ease;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-icon-wrapper {
  position: relative;
  display: inline-block;
  margin-bottom: 1.5rem;
}

.hero-icon-bg {
  position: absolute;
  inset: -20px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.3) 0%, transparent 70%);
  border-radius: 50%;
  animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.5;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.8;
  }
}

.hero-icon {
  position: relative;
  font-size: 5rem;
  color: #60a5fa;
  filter: drop-shadow(0 0 30px rgba(59, 130, 246, 0.5));
}

.hero-title-modern {
  font-size: 3rem;
  font-weight: 800;
  background: linear-gradient(135deg, #ffffff 0%, #60a5fa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
}

.hero-desc-modern {
  font-size: 1.125rem;
  color: #94a3b8;
  font-weight: 400;
}

/* Main Verification Card */
.verify-main-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 32px;
  padding: 3rem;
  margin-bottom: 3rem;
  position: relative;
  overflow: hidden;
  animation: fadeInUp 0.8s ease 0.2s both;
  box-shadow: 
    0 25px 50px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

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

.card-glow {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
  animation: rotate 20s linear infinite;
  pointer-events: none;
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Form Styles */
.verify-form-modern {
  position: relative;
  z-index: 1;
}

.form-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #e2e8f0;
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.form-label i {
  color: #60a5fa;
  font-size: 1.5rem;
}

.input-wrapper-modern {
  position: relative;
  margin-bottom: 2rem;
}

.serial-input-modern {
  width: 100%;
  padding: 1.5rem 1.75rem;
  background: rgba(255, 255, 255, 0.08);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  font-size: 1.5rem;
  font-family: 'Courier New', monospace;
  font-weight: 700;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 3px;
  text-align: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.serial-input-modern:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.12);
  border-color: #60a5fa;
  box-shadow: 
    0 0 0 4px rgba(59, 130, 246, 0.2),
    0 10px 40px rgba(59, 130, 246, 0.3);
}

.serial-input-modern::placeholder {
  color: #64748b;
  opacity: 1;
  letter-spacing: 2px;
}

.input-focus-line {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #3b82f6, #8b5cf6, #3b82f6);
  border-radius: 2px;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.serial-input-modern:focus + .input-focus-line {
  transform: translateX(-50%) scaleX(1);
}

/* Verify Button */
.verify-btn-modern {
  width: 100%;
  padding: 0;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 10px 40px rgba(59, 130, 246, 0.4);
}

.btn-bg-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
  transition: opacity 0.3s;
}

.verify-btn-modern:hover .btn-bg-gradient {
  opacity: 0.9;
}

.verify-btn-modern:active {
  transform: scale(0.98);
}

.btn-content {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1.5rem;
  color: white;
  font-size: 1.25rem;
  font-weight: 700;
  z-index: 1;
}

.btn-content i {
  font-size: 1.5rem;
}

.verify-btn-modern:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.verify-btn-modern:disabled:hover .btn-bg-gradient {
  opacity: 1;
}

.form-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: #94a3b8;
  font-size: 0.9375rem;
  margin-top: 1rem;
}

.form-hint i {
  color: #60a5fa;
}

/* Quick Guide */
.quick-guide-modern {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 32px;
  padding: 2.5rem;
  margin-bottom: 2rem;
  animation: fadeInUp 0.8s ease 0.4s both;
}

.guide-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  color: #e2e8f0;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 2.5rem;
  text-align: center;
}

.guide-title i {
  color: #60a5fa;
  font-size: 1.75rem;
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.guide-step {
  text-align: center;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  transition: all 0.3s;
}

.guide-step:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(59, 130, 246, 0.2);
}

.step-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 1rem;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  color: white;
  box-shadow: 0 10px 30px rgba(59, 130, 246, 0.4);
}

.guide-step h4 {
  color: #ffffff;
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.guide-step p {
  color: #94a3b8;
  font-size: 0.9375rem;
  margin: 0;
}

/* Guide Image Box */
.guide-image-box {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 1.5rem;
}

.image-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: #e2e8f0;
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 1rem;
}

.image-title i {
  color: #60a5fa;
}

.image-container-modern {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  margin-bottom: 1rem;
  border: 2px solid rgba(59, 130, 246, 0.3);
  transition: all 0.3s;
  cursor: pointer;
}

.image-container-modern:hover {
  transform: scale(1.02);
  box-shadow: 0 15px 50px rgba(59, 130, 246, 0.4);
}

.guide-image {
  width: 100%;
  height: auto;
  display: block;
  background: white;
}

.image-caption {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: #94a3b8;
  font-size: 0.875rem;
  margin: 0;
  text-align: center;
}

.image-caption i {
  color: #60a5fa;
}

/* Warning Box */
.warning-box-modern {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.75rem 2rem;
  background: rgba(251, 191, 36, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(251, 191, 36, 0.3);
  border-left: 5px solid #fbbf24;
  border-radius: 20px;
  animation: fadeInUp 0.8s ease 0.6s both;
}

.warning-icon-wrapper {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  color: white;
  flex-shrink: 0;
  box-shadow: 0 10px 30px rgba(251, 191, 36, 0.4);
}

.warning-text h4 {
  color: #fbbf24;
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.warning-text p {
  color: #cbd5e1;
  font-size: 0.9375rem;
  line-height: 1.6;
  margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
  .auth-modern-container {
    padding: 0 1rem;
  }
  
  .hero-title-modern {
    font-size: 2rem;
  }
  
  .hero-desc-modern {
    font-size: 1rem;
  }
  
  .hero-icon {
    font-size: 3.5rem;
  }
  
  .verify-main-card {
    padding: 2rem 1.5rem;
  }
  
  .serial-input-modern {
    font-size: 1.125rem;
    letter-spacing: 2px;
    padding: 1.25rem 1.5rem;
  }
  
  .btn-content {
    font-size: 1.125rem;
  }
  
  .guide-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .guide-title {
    font-size: 1.25rem;
  }
  
  .quick-guide-modern {
    padding: 1.5rem;
  }
  
  .warning-box-modern {
    flex-direction: column;
    text-align: center;
    padding: 1.5rem;
  }
}

@media (max-width: 480px) {
  .hero-title-modern {
    font-size: 1.75rem;
  }
  
  .serial-input-modern {
    font-size: 1rem;
    letter-spacing: 1px;
  }
}

/* Self Register Button */
.self-register-btn-modern {
  width: 100%;
  padding: 1rem 2rem;
  border: 2px solid #8b5cf6;
  background: white;
  color: #8b5cf6;
  border-radius: 12px;
  font-size: 1.125rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  margin-top: 0.75rem;
}

.self-register-btn-modern:hover {
  background: #f3e8ff;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(139, 92, 246, 0.2);
}

.self-register-btn-modern .btn-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  position: relative;
  z-index: 1;
}
