/* Modern Authentication Pages Styles */

/* Auth Container with Gradient Background */
.auth-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  position: relative;
  overflow: hidden;
}

.auth-wrapper::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  filter: blur(80px);
}

.auth-wrapper::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  filter: blur(60px);
}

/* Modern Auth Card */
.auth-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 24px;
  padding: 48px 40px;
  max-width: 480px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.2), 0 8px 20px rgba(15, 23, 42, 0.1);
  position: relative;
  z-index: 1;
  animation: slideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Logo Container */
.auth-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 32px;
  position: relative;
}

.auth-logo-icon {
  width: 72px;
  height: 72px;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
  animation: logoFloat 3s ease-in-out infinite;
}

@keyframes logoFloat {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

.auth-logo img {
  width: 72px;
  height: 72px;
  filter: drop-shadow(0 8px 20px rgba(59, 130, 246, 0.3));
}

/* Auth Title */
.auth-title {
  font-size: 28px;
  font-weight: 800;
  text-align: center;
  margin-bottom: 12px;
  color: #1a2942;
  letter-spacing: -0.02em;
}

.auth-subtitle {
  font-size: 14px;
  text-align: center;
  color: #5a6c84;
  margin-bottom: 32px;
  font-weight: 500;
}

/* Modern Form Inputs */
.auth-form-group {
  margin-bottom: 20px;
}

.auth-form-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #1a2942;
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}

.auth-form-input {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid #e1e8f0;
  border-radius: 12px;
  font-size: 15px;
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  color: #1a2942;
  background: #fff;
  transition: all 0.2s ease;
  outline: none;
}

.auth-form-input::placeholder {
  color: #7e8ba3;
  font-weight: 400;
}

.auth-form-input:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
  transform: translateY(-1px);
}

.auth-form-input:hover {
  border-color: #93c5fd;
}

/* Checkbox */
.auth-checkbox-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
}

.auth-checkbox {
  width: 20px;
  height: 20px;
  border: 2px solid #e1e8f0;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.auth-checkbox:checked {
  background: #3b82f6;
  border-color: #3b82f6;
}

.auth-checkbox-label {
  font-size: 14px;
  color: #5a6c84;
  font-weight: 500;
  cursor: pointer;
  user-select: none;
}

/* Modern Submit Button */
.auth-btn-submit {
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.4);
  position: relative;
  overflow: hidden;
}

.auth-btn-submit::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.auth-btn-submit:hover::before {
  width: 300px;
  height: 300px;
}

.auth-btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.5);
}

.auth-btn-submit:active {
  transform: translateY(0);
}

.auth-btn-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Auth Links */
.auth-links {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
  font-size: 14px;
}

.auth-link {
  color: #3b82f6;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s ease;
}

.auth-link:hover {
  color: #2563eb;
  text-decoration: underline;
}

.auth-text-center {
  text-align: center;
  margin-top: 24px;
  font-size: 14px;
  color: #5a6c84;
}

.auth-text-center a {
  color: #3b82f6;
  font-weight: 600;
  text-decoration: none;
}

.auth-text-center a:hover {
  text-decoration: underline;
}

/* Divider */
.auth-divider {
  display: flex;
  align-items: center;
  margin: 32px 0;
  color: #7e8ba3;
  font-size: 13px;
  font-weight: 500;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #e1e8f0;
}

.auth-divider::before {
  margin-right: 16px;
}

.auth-divider::after {
  margin-left: 16px;
}

/* External Login Buttons */
.auth-external-btns {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.auth-btn-external {
  flex: 1;
  min-width: 120px;
  padding: 12px 20px;
  background: #fff;
  border: 2px solid #e1e8f0;
  border-radius: 12px;
  color: #1a2942;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.auth-btn-external:hover {
  border-color: #3b82f6;
  background: rgba(59, 130, 246, 0.05);
  transform: translateY(-1px);
}

/* Validation Error */
.auth-validation-error {
  color: #ef4444;
  font-size: 12px;
  margin-top: 6px;
  font-weight: 500;
}

.auth-alert-danger {
  background: #fee2e2;
  border: 2px solid #fca5a5;
  border-radius: 12px;
  padding: 12px 16px;
  margin-bottom: 24px;
  color: #991b1b;
  font-size: 14px;
  font-weight: 500;
}

/* Responsive */
@media (max-width: 640px) {
  .auth-card {
    padding: 32px 24px;
  }
  
  .auth-title {
    font-size: 24px;
  }
  
  .auth-logo-icon,
  .auth-logo img {
    width: 64px;
    height: 64px;
  }
}
