@import url('https://fonts.googleapis.com/css2?family=Pacifico&family=Inter:wght@400;600;700&display=swap');

body {
  font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
  background: linear-gradient(120deg, #181c2f 0%, #232946 100%);
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow-x: hidden;
}
body.minimalist .bg-shape,
body.minimalist .star {
  display: none !important;
}
.background-gradient {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: -2;
  background: linear-gradient(120deg, #181c2f 0%, #232946 100%);
  filter: blur(0.5px);
}
.bg-shape, .star {
  position: fixed;
  z-index: -1;
  pointer-events: none;
}
.bg-shape1 {
  width: 320px; height: 320px;
  left: -80px; top: 40px;
  background: #fff;
  opacity: 0.07;
  border-radius: 50%;
}
.bg-shape2 {
  width: 180px; height: 180px;
  right: -60px; top: 120px;
  background: #007bff;
  opacity: 0.09;
  border-radius: 50%;
}
.bg-shape3 {
  width: 100px; height: 100px;
  left: 60vw; top: 70vh;
  background: #f1c40f;
  opacity: 0.07;
  border-radius: 50%;
}
.star {
  width: 8px; height: 8px;
  background: #fff;
  border-radius: 50%;
  opacity: 0.13;
}
.star1 { left: 12vw; top: 18vh; }
.star2 { left: 80vw; top: 10vh; }
.star3 { left: 60vw; top: 80vh; }
.star4 { left: 30vw; top: 60vh; }
.star5 { left: 70vw; top: 40vh; }

.main-center {
  width: 100vw;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1 1 auto;
  position: relative;
  z-index: 1;
}
.verifier-section {
  width: 100vw;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
}
.glass-card {
  background: rgba(30, 34, 54, 0.88);
  box-shadow: 0 12px 48px 0 rgba(0,0,0,0.48), 0 0 32px 0 #00b89455;
  border-radius: 40px;
  border: 3px solid transparent;
  padding: 48px 36px 36px 36px;
  max-width: 400px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: cardSpringIn 1.1s cubic-bezier(.23,1.12,.62,1.01) both;
  box-sizing: border-box;
  position: relative;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  overflow: hidden;
  transition: box-shadow 0.3s, transform 0.3s;
}
.glass-card::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 44px;
  background: linear-gradient(270deg, #00b894, #00cec9, #6c5ce7, #00b894);
  background-size: 400% 400%;
  opacity: 0.18;
  z-index: 0;
  pointer-events: none;
  animation: borderGradientMove 8s linear infinite alternate;
}
.glass-card::after {
  content: '';
  position: absolute;
  top: -30px; left: -60px;
  width: 180%; height: 60px;
  background: linear-gradient(120deg, rgba(255,255,255,0.18) 0%, rgba(255,255,255,0.02) 100%);
  transform: rotate(-8deg);
  pointer-events: none;
  z-index: 10;
  animation: shineMove 3.5s linear infinite;
}
.glass-card .card-watermark {
  position: absolute;
  bottom: 18px; right: 18px;
  opacity: 0.08;
  width: 60px;
  height: auto;
  z-index: 11;
  pointer-events: none;
}
@keyframes borderGradientMove {
  0% { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}
@keyframes shineMove {
  0% { left: -60px; }
  100% { left: 100%; }
}
.glass-card:hover {
  box-shadow: 0 20px 64px 0 #00b89477, 0 0 48px 0 #00b89477;
  transform: translateY(-8px) scale(1.03);
}
@keyframes cardSpringIn {
  0% { opacity: 0; transform: translateY(60px) scale(0.95); }
  60% { opacity: 1; transform: translateY(-10px) scale(1.03); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
.button-ripple {
  position: absolute;
  border-radius: 50%;
  transform: scale(0);
  animation: ripple 0.6s linear;
  background: rgba(0,123,255,0.25);
  pointer-events: none;
  z-index: 2;
}
@keyframes ripple {
  to {
    transform: scale(2.5);
    opacity: 0;
  }
}
.brand-logo {
  height: 90px;
  width: auto;
  margin-bottom: 12px;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.18));
}
.brand-title {
  font-family: 'Merriweather', 'Georgia', serif;
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.5px;
  margin: 0 0 18px 0;
  text-align: center;
  text-shadow: 0 2px 8px rgba(0,0,0,0.18);
  background: linear-gradient(90deg, #00b894 0%, #00cec9 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.verifier-title {
  font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 36px;
  letter-spacing: 0.2px;
  text-align: center;
  position: relative;
  z-index: 1;
  text-shadow: 0 2px 8px rgba(0,0,0,0.18);
  background: linear-gradient(90deg, #00b894 0%, #00cec9 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.verifier-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: relative;
  z-index: 1;
}
.input-group {
  position: relative;
  width: 100%;
}
.input-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #bfc6d1;
  font-size: 1.2em;
  pointer-events: none;
  z-index: 2;
}
.floating-label {
  position: absolute;
  left: 48px;
  top: 50%;
  transform: translateY(-50%);
  color: #bfc6d1;
  font-size: 1rem;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(.39,.575,.565,1);
  background: transparent;
  padding: 0 4px;
  animation: none;
}
input[type="text"]:focus + .floating-label,
input[type="text"]:not(:placeholder-shown) + .floating-label {
  top: -10px;
  left: 40px;
  font-size: 0.92rem;
  color: #007bff;
  font-weight: 600;
  background: rgba(35,41,70,0.95);
  padding: 2px 12px;
  border-radius: 16px;
  box-shadow: 0 2px 8px 0 rgba(0,123,255,0.10), 0 0 4px 0 #007bff33;
  margin-left: 8px;
  animation: labelBounce 0.5s cubic-bezier(.39,.575,.565,1);
}
input[type="text"] {
  width: 100%;
  padding: 20px 18px 8px 48px;
  font-size: 1rem;
  border: none;
  border-radius: 20px;
  background: rgba(255,255,255,0.10);
  color: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.10) inset;
  transition: background 0.2s, box-shadow 0.2s;
  outline: none;
  box-sizing: border-box;
  margin: 0;
  display: block;
  letter-spacing: 0.5px;
}
input[type="text"]:focus {
  background: rgba(255,255,255,0.18);
  box-shadow: 0 0 0 2px #007bff44, 0 2px 8px rgba(0,0,0,0.13) inset;
  outline: 2.5px solid #007bff;
  outline-offset: 2px;
}
button {
  width: 100%;
  padding: 16px 0;
  font-size: 1.1rem;
  color: #fff;
  background: linear-gradient(90deg, #00b894 0%, #00cec9 100%);
  border: none;
  border-radius: 32px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 2px 12px rgba(0,0,0,0.18);
  transition: background 0.2s, transform 0.13s, box-shadow 0.2s, color 0.2s;
  position: relative;
  outline: none;
  overflow: hidden;
  text-align: center;
  display: block;
}
button:after {
  display: none;
}
button:hover, button:focus {
  background: linear-gradient(90deg, #00cec9 0%, #00b894 100%);
  color: #fff;
  box-shadow: 0 4px 24px 0 #00b89477;
  transform: translateY(-1px) scale(1.04);
}
button:focus {
  outline: 2.5px solid #007bff;
  outline-offset: 2px;
}
.spinner {
  border: 4px solid #232946;
  border-top: 4px solid #007bff;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  animation: spin 1s linear infinite;
  margin: 18px auto 0 auto;
}
.spinner.hidden {
  display: none !important;
}
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
.card {
  background: rgba(30,34,54,0.92);
  border-radius: 18px;
  border: 1.5px solid rgba(255,255,255,0.09);
  padding: 24px 16px;
  margin: 24px auto 0 auto;
  max-width: 390px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.23);
  animation: fadeInUp 0.6s cubic-bezier(.39,.575,.565,1) both;
  position: relative;
  color: #fff;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.card h3 {
  margin-top: 0;
  color: #fff;
  font-size: 1.2rem;
  font-weight: 700;
  text-align: center;
  font-family: 'Merriweather', 'Georgia', serif;
  text-shadow: 0 2px 8px rgba(0,0,0,0.18);
}
.card h4 {
  color: #fff;
  margin-bottom: 8px;
  font-size: 1.05rem;
  font-weight: 600;
  border-bottom: 1px solid #232946;
  padding-bottom: 4px;
}
.card p {
  color: #e0e6ed;
  margin: 8px 0;
  font-size: 1rem;
}
.card img {
  max-width: 90px;
  border-radius: 8px;
  margin-bottom: 12px;
  object-fit: cover;
  box-shadow: 0 1px 4px rgba(0,0,0,0.18);
  display: block;
  margin-left: auto;
  margin-right: auto;
}
.assignment-status {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}
.assignment-status span {
  background: rgba(255,255,255,0.08);
  color: #fff;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 1px 2px rgba(0,0,0,0.13);
  border: 1px solid #232946;
}
.card a {
  display: inline-block;
  margin-top: 10px;
  color: #7ed6df;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}
.card a:hover {
  color: #fff;
  text-decoration: underline;
}
#toast {
  visibility: hidden;
  min-width: 200px;
  background: rgba(30,34,54,0.97);
  color: #fff;
  text-align: center;
  border-radius: 8px;
  padding: 12px 18px;
  position: fixed;
  z-index: 999;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  opacity: 0;
  font-size: 0.97rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.23);
  transition: opacity 0.5s, bottom 0.5s;
}
#toast.show {
  visibility: visible;
  opacity: 1;
  bottom: 48px;
}
.visually-hidden {
  position: absolute !important;
  height: 1px; width: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
  border: 0;
  padding: 0;
  margin: -1px;
}
#bg-anim {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  z-index: -3;
  pointer-events: none;
  display: block;
}
@keyframes labelBounce {
  0% { transform: translateY(-50%) scale(1); }
  40% { transform: translateY(-60%) scale(1.08); }
  60% { transform: translateY(-45%) scale(0.96); }
  100% { transform: translateY(-50%) scale(1); }
}
#back-to-top {
  position: fixed;
  right: 24px;
  bottom: 32px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(30,34,54,0.85);
  box-shadow: 0 2px 12px rgba(0,0,0,0.18);
  border: 2px solid #fff;
  color: #fff;
  font-size: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2000;
  opacity: 0.85;
  transition: background 0.2s, box-shadow 0.2s, opacity 0.2s;
  outline: none;
  backdrop-filter: blur(8px);
}
#back-to-top:hover, #back-to-top:focus {
  background: #007bff;
  color: #fff;
  box-shadow: 0 4px 16px #007bff55;
  opacity: 1;
}
.divider {
  width: 80%;
  height: 2px;
  background: linear-gradient(90deg, #00b894 0%, #00cec9 100%);
  opacity: 0.18;
  border-radius: 2px;
  margin: 18px auto 32px auto;
}
.minimalist .bg-shape,
.minimalist .star {
  display: none !important;
}
@media (max-width: 600px) {
  .glass-card, .card {
    max-width: 98vw;
    padding: 10vw 3vw 7vw 3vw;
    border-radius: 18px;
  }
  .main-center {
    padding-top: 0;
  }
  .brand-logo {
    height: 56px;
  }
  .brand-title {
    font-size: 1.1rem;
    margin-bottom: 10px;
  }
  .verifier-title {
    font-size: 0.98rem;
    margin-bottom: 16px;
  }
  .verifier-form {
    gap: 16px;
  }
  .input-group {
    width: 100%;
  }
  input[type="text"] {
    font-size: 0.98rem;
    padding: 16px 12px 6px 12px;
    border-radius: 14px;
  }
  .floating-label {
    font-size: 0.98rem;
    left: 12px;
  }
  input[type="text"]:focus + .floating-label,
  input[type="text"]:not(:placeholder-shown) + .floating-label {
    font-size: 0.85rem;
    left: 8px;
    border-radius: 12px;
    padding: 2px 8px;
  }
  button {
    font-size: 1rem;
    border-radius: 22px;
    padding: 12px 0;
  }
}
@media (max-width: 400px) {
  .glass-card, .card {
    padding: 6vw 2vw 5vw 2vw;
    border-radius: 12px;
  }
  .brand-title {
    font-size: 0.98rem;
  }
  .verifier-title {
    font-size: 0.85rem;
  }
  input[type="text"] {
    font-size: 0.92rem;
    padding: 12px 8px 4px 8px;
    border-radius: 8px;
  }
  .floating-label {
    font-size: 0.92rem;
    left: 8px;
  }
  input[type="text"]:focus + .floating-label,
  input[type="text"]:not(:placeholder-shown) + .floating-label {
    font-size: 0.75rem;
    left: 4px;
    border-radius: 8px;
    padding: 1px 4px;
  }
  button {
    font-size: 0.92rem;
    border-radius: 12px;
    padding: 10px 0;
  }
}
