/**
 * ==========================================
 * Authentication Modal Styles
 * ==========================================
 */

/* Modal Overlay */
.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.auth-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
}

/* Modal Content */
.auth-modal-content {
  position: relative;
  width: 100%;
  max-width: 440px;
  background: #0f1433;
  border: 1px solid rgba(0, 212, 255, 0.3);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Close Button */
.auth-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  font-size: 2rem;
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.2s;
  line-height: 1;
}

.auth-modal-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

/* Modal Header */
.auth-modal-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.5rem;
}

.auth-modal-subtitle {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 2rem;
}

/* Form */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.auth-form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.auth-form-group label {
  font-size: 0.875rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
}

.auth-form-group input {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(0, 212, 255, 0.3);
  border-radius: 8px;
  outline: none;
  transition: all 0.2s;
}

.auth-form-group input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.auth-form-group input:focus {
  background: rgba(255, 255, 255, 0.08);
  border-color: #00D4FF;
  box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
}

/* Form Footer */
.auth-form-footer {
  display: flex;
  justify-content: flex-end;
  margin-top: -0.5rem;
}

/* Buttons */
.auth-btn {
  width: 100%;
  padding: 0.875rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.auth-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.auth-btn-primary {
  background: #00D4FF;
  color: #000;
}

.auth-btn-primary:hover:not(:disabled) {
  background: #00B8E6;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 212, 255, 0.3);
}

.auth-btn-google {
  background: #fff;
  color: #333;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.auth-btn-google:hover:not(:disabled) {
  background: #f5f5f5;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Divider */
.auth-divider {
  position: relative;
  text-align: center;
  margin: 1.5rem 0;
}

.auth-divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
}

.auth-divider span {
  position: relative;
  display: inline-block;
  padding: 0 1rem;
  background: #0f1433;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.875rem;
}

/* Links */
.auth-link {
  color: #00D4FF;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.auth-link:hover {
  color: #00B8E6;
  text-decoration: underline;
}

/* Switch Text */
.auth-switch {
  text-align: center;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 1.5rem;
}

/* Terms */
.auth-terms {
  text-align: center;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 1rem;
  line-height: 1.5;
}

/* Error/Success Messages */
.auth-error,
.auth-success {
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-size: 0.875rem;
  margin-top: 0.5rem;
}

.auth-error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #ff4444;
}

.auth-success {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #22c55e;
}

/* Responsive */
@media (max-width: 480px) {
  .auth-modal-content {
    padding: 1.5rem;
  }

  .auth-modal-title {
    font-size: 1.5rem;
  }

  .auth-modal-subtitle {
    font-size: 0.875rem;
  }

  .auth-btn {
    padding: 0.75rem 1.25rem;
    font-size: 0.9375rem;
  }
}
