/* css/auth.css */
.auth-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.auth-card {
  width: 100%;
  max-width: 440px;
  padding: 48px 40px;
  background: white;
  border-radius: 24px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  text-align: center;
  backdrop-filter: blur(10px);
}

.logo {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  border-radius: 20px;
  margin: 0 auto 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 2rem;
  font-weight: bold;
  box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
}

h1 {
  font-size: 2.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, #4c1d95, #7c3aed);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
}

.subtitle {
  color: #64748b;
  font-size: 1.1rem;
  margin-bottom: 2.5rem;
}

/* Floating Label Input */
.input-wrapper {
  position: relative;
  margin-bottom: 1.8rem;
}

.input-field {
  width: 100%;
  padding: 16px 48px 16px 16px;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  font-size: 1rem;
  transition: all 0.3s;
  background: #fafafa;
}

.input-field:focus {
  outline: none;
  border-color: #6366f1;
  background: white;
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.input-label {
  position: absolute;
  left: 16px;
  top: 16px;
  font-size: 1rem;
  color: #94a3b8;
  pointer-events: none;
  transition: all 0.3s;
  background: #fafafa;
  padding: 0 6px;
}

.input-field:focus ~ .input-label,
.input-field:not(:placeholder-shown) ~ .input-label {
  top: -10px;
  font-size: 0.85rem;
  color: #6366f1;
  font-weight: 600;
  background: white;
}

/* Password Toggle */
.password-toggle {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  color: #94a3b8;
  font-size: 1.3rem;
  transition: color 0.3s;
}

.password-toggle:hover { color: #6366f1; }

/* Message */
.message {
  margin-top: 1.5rem;
  padding: 12px;
  border-radius: 8px;
  font-weight: 500;
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.error { background: #fee2e2; color: #dc2626; border: 1px solid #fecaca; }
.success { background: #dcfce7; color: #16a34a; border: 1px solid #bbf7d0; }

.flex-gap { 
  gap: 1rem; 
  margin-top: 1.5rem;
  display: flex;
}

@media (max-width: 480px) {
  .flex-gap { flex-direction: column; }
  .flex-gap button { width: 100%; }
}

/* Flexible Index Number Mask */
.index-mask {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #cbd5e1;
  font-family: 'Courier New', monospace;
  font-weight: bold;
  pointer-events: none;
  z-index: 1;
  letter-spacing: 1px;
  opacity: 0.6;
  transition: opacity 0.3s;
}

.index-mask span {
  color: #94a3b8;
  font-weight: normal;
}

.input-wrapper:has(#indexNumber:focus) .index-mask,
.input-wrapper:has(#indexNumber:not(:placeholder-shown)) .index-mask {
  opacity: 0.15;
}

/* Valid / Invalid border feedback */
#indexNumber.valid { border-color: #10b981; }
#indexNumber.invalid { border-color: #ef4444; }

/* Confirm Password Match Message */
.password-match {
  position: absolute;
  right: 45px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.85rem;
  font-weight: 600;
  pointer-events: none;
}

/* Valid/Invalid Border Feedback */
.input-field.valid { border-color: #10b981; box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1); }
.input-field.invalid { border-color: #ef4444; box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1); }