/* ========================================
   Modern Authentication Pages
   ======================================== */

.auth-container {
  min-height: calc(100vh - 80px);
  display: grid;
  place-items: center;
  padding: 2rem 1rem;
  background: linear-gradient(135deg, #0f0620 0%, #1a0f35 100%);
  position: relative;
  overflow: hidden;
}

/* Animated background elements */
.auth-container::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(168, 229, 255, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  animation: float 15s ease-in-out infinite;
}

.auth-container::after {
  content: '';
  position: absolute;
  bottom: -50%;
  left: -50%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(45, 27, 105, 0.2) 0%, transparent 70%);
  border-radius: 50%;
  animation: float 20s ease-in-out infinite reverse;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(30px, 30px); }
}

.auth-card {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 420px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  padding: 2.5rem;
  backdrop-filter: blur(20px);
  box-shadow: 0 16px 64px rgba(0, 0, 0, 0.3);
  animation: slideUp 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.auth-header {
  text-align: center;
  margin-bottom: 2rem;
}

.auth-header h1 {
  margin: 0 0 0.5rem;
  font-size: 2rem;
  font-weight: 700;
  color: white;
  letter-spacing: -0.03em;
}

.auth-header p {
  margin: 0;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.02em;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-size: 0.9375rem;
  font-weight: 500;
  color: white;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.form-group input {
  padding: 0.85rem 1.25rem;
  font-size: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  color: white;
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  backdrop-filter: blur(10px);
}

.form-group input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.form-group input:focus {
  outline: none;
  border-color: rgba(168, 229, 255, 0.5);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 20px rgba(168, 229, 255, 0.2);
}

.error-message {
  padding: 0.6rem 0.9rem;
  font-size: 0.875rem;
  color: #ff6b6b;
  background: rgba(255, 107, 107, 0.1);
  border: 1px solid rgba(255, 107, 107, 0.3);
  border-radius: 8px;
  margin-top: 0.35rem;
  animation: shake 0.35s ease-in-out;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

.auth-btn {
  padding: 1rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: #0f0620;
  background: linear-gradient(135deg, #a8e5ff 0%, #9dd7ff 100%);
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: 0 8px 24px rgba(168, 229, 255, 0.3);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
}

.auth-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(168, 229, 255, 0.4);
  background: linear-gradient(135deg, #c0f0ff 0%, #b0e8ff 100%);
}

.auth-btn:active {
  transform: translateY(0);
}

.auth-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.auth-links {
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
}

.auth-links p {
  margin: 0 0 1rem;
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.8);
}

.auth-links p:last-child {
  margin-bottom: 0;
}

.auth-links a {
  color: #a8e5ff;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  border-bottom: 2px solid transparent;
}

.auth-links a:hover {
  color: #e8d5ff;
  border-bottom-color: #a8e5ff;
}

/* Register page specific */
.register-container {
  min-height: calc(100vh - 80px);
  display: grid;
  place-items: center;
  padding: 2rem 1rem;
  background: linear-gradient(135deg, #0f0620 0%, #1a0f35 100%);
}

.register-card {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 450px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  padding: 2.5rem;
  backdrop-filter: blur(20px);
  box-shadow: 0 16px 64px rgba(0, 0, 0, 0.3);
  animation: slideUp 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Responsive */
@media (max-width: 640px) {
  .auth-card,
  .register-card {
    padding: 1.75rem;
    max-width: 100%;
  }

  .auth-header h1 {
    font-size: 1.5rem;
  }

  .auth-container::before,
  .auth-container::after {
    width: 400px;
    height: 400px;
  }
}
