/* Authentication Dialog Styles */
.auth-dialog-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  backdrop-filter: blur(5px);
}

.auth-dialog {
  background-color: rgb(40, 40, 40);
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  width: 100%;
  max-width: 450px;
  margin: 20px;
  position: relative;
  animation: slideIn 0.3s ease-out;
}

.auth-close-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  background: transparent;
  border: none;
  color: rgb(250, 236, 232);
  cursor: pointer;
  padding: 8px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  z-index: 1;
}

.auth-close-btn:hover {
  background-color: rgba(204, 69, 23, 0.2);
  color: rgb(204, 69, 23);
  transform: scale(1.1);
}

.auth-close-btn:active {
  transform: scale(0.95);
}

.auth-close-btn:focus {
  outline: 2px solid rgb(204, 69, 23);
  outline-offset: 2px;
}

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

.auth-dialog-header {
  text-align: center;
  margin-bottom: 30px;
}

.auth-dialog-title {
  color: rgb(204, 69, 23);
  font-size: 2rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin: 0 0 10px 0;
  font-family: "Open Sans", sans-serif;
}

.auth-dialog-subtitle {
  color: rgb(250, 236, 232);
  font-size: 1rem;
  margin: 0;
  opacity: 0.9;
  line-height: 1.4;
}

.auth-dialog-form {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.auth-form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.auth-form-label {
  color: rgb(204, 69, 23);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.auth-form-input {
  width: 100%;
  padding: 15px;
  border: 2px solid rgb(69, 69, 69);
  border-radius: 8px;
  background-color: rgb(50, 50, 50);
  color: rgb(250, 236, 232);
  font-size: 1rem;
  font-family: "Open Sans", sans-serif;
  box-sizing: border-box;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.auth-form-input:focus {
  outline: none;
  border-color: rgb(204, 69, 23);
  box-shadow: 0 0 0 3px rgba(204, 69, 23, 0.2);
}

.auth-form-input::placeholder {
  color: rgb(150, 150, 150);
  opacity: 0.8;
}

.auth-form-input:invalid {
  border-color: rgb(220, 53, 69);
}

.auth-form-input:invalid:focus {
  box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.2);
}

.auth-dialog-buttons {
  display: flex;
  margin-top: 10px;
}

.auth-submit-btn {
  flex: 1;
  padding: 15px 25px;
  background-color: rgb(204, 69, 23);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: "Verdana", sans-serif;
  position: relative;
  overflow: hidden;
}

.auth-submit-btn:hover:not(:disabled) {
  background-color: rgb(184, 49, 3);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(204, 69, 23, 0.4);
}

.auth-submit-btn:active {
  transform: translateY(0);
}

.auth-submit-btn:disabled {
  background-color: rgb(100, 100, 100);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Cancel button styles removed - no cancel functionality */

.auth-error-message {
  background-color: rgba(220, 53, 69, 0.1);
  border: 1px solid rgb(220, 53, 69);
  color: rgb(255, 193, 193);
  padding: 12px 15px;
  border-radius: 6px;
  font-size: 0.9rem;
  margin-top: 15px;
  display: none;
  animation: fadeIn 0.3s ease-in;
}

.auth-error-message.show {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.auth-loading-spinner {
  display: none;
  width: 20px;
  height: 20px;
  border: 2px solid transparent;
  border-top: 2px solid white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-right: 10px;
}

.auth-submit-btn.loading .auth-loading-spinner {
  display: inline-block;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Accessibility improvements */
.auth-dialog:focus-within {
  outline: 2px solid rgb(204, 69, 23);
  outline-offset: 2px;
}

/* Screen reader only text */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .auth-dialog {
    border: 2px solid rgb(204, 69, 23);
  }

  .auth-form-input {
    border-width: 3px;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .auth-dialog {
    animation: none;
  }

  .auth-loading-spinner {
    animation: none;
  }

  .auth-submit-btn:hover,
  .auth-close-btn:hover {
    transform: none;
  }
}

/* Mobile responsiveness */
@media (max-width: 480px) {
  .auth-dialog {
    padding: 30px 20px;
    margin: 10px;
  }

  .auth-dialog-title {
    font-size: 1.6rem;
  }

  .auth-dialog-buttons {
    flex-direction: column;
  }

  .auth-submit-btn {
    width: 100%;
  }
}
