/* CSS Reset - Prevent WordPress styles from bleeding into widget */
/* Modal Overlay */
.auth-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

/* Modal Content */
.auth-modal {
  position: absolute;
  top: 50%;
  left: 50%;
  right: auto;
  bottom: auto;
  transform: translate(-50%, -50%);
  background: white;
  border-radius: 8px;
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  outline: none;
  padding: 0;
  border: none;
}

.auth-modal-content {
  padding: 2rem;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

/* Close Button */
.auth-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none !important;
  border: none !important;
  font-size: 2rem;
  color: #666 !important;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
  text-decoration: none !important;
}

.auth-modal-close:hover {
  color: #000 !important;
  background-color: transparent !important;
  text-decoration: none !important;
}

/* Header */
.auth-modal-header {
  margin-bottom: 2rem;
  width: 100%;
  display: flex;
  justify-content: flex-start;
}

.auth-modal-logo {
  width: 134px;
  height: 24px;
}

/* Form */
.auth-form {
  width: 100%;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

.auth-title {
  font-size: 1.875rem;
  color: #212529;
  font-weight: bold;
  margin: 0 0 1.75rem 0;
  text-align: left;
}

/* Social Sign In Section */
.auth-social-section {
  margin-bottom: 1rem;
}

.auth-social-button {
  width: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.5rem !important;
  background: white !important;
  padding: 0.625rem 1rem !important;
  border: 1px solid #808080 !important;
  border-radius: 4px !important;
  cursor: pointer !important;
  margin-bottom: 1rem !important;
  font-size: 1rem !important;
  color: #212529 !important;
  transition: background-color 0.2s !important;
  margin-right: 0px !important;
  margin-left: 0px !important;
}

.auth-social-button:hover {
  background-color: #f9f9f9 !important;
}

.auth-social-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 40px;
}

/* Divider */
.auth-divider {
  display: flex;
  align-items: center;
  width: 100%;
  margin: 1rem 0;
}

.auth-divider-line {
  flex-grow: 1;
  border-top: 1px solid #c6c6c6;
}

.auth-divider-text {
  padding: 0 1rem;
  color: #c6c6c6;
  font-size: 0.875rem;
}

/* Error Message */
.auth-error {
  background-color: #fee;
  color: #ed0a0a;
  padding: 0.75rem;
  border-radius: 4px;
  margin-bottom: 1rem;
  font-size: 0.875rem;
}

/* Form Fields */
.auth-field {
  margin-bottom: 1rem;
  position: relative;
}

.auth-field-password {
  position: relative;
}

.auth-input {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  background: white;
  outline: none;
  transition: border-color 0.2s;
  box-sizing: border-box;
}

.auth-input::placeholder {
  color: #9ca3af;
}

.auth-input:focus {
  border-color: #00b3de;
  box-shadow: 0 0 0 3px rgba(0, 179, 222, 0.1);
}

.auth-input:disabled {
  background-color: #f5f5f5;
  cursor: not-allowed;
}

.auth-field-password .auth-input {
  padding-right: 3rem;
}

.auth-toggle-password {
  position: absolute;
  right: 0.75rem;
  top: 0;
  bottom: 0;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
  line-height: 1;
  transition: opacity 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  margin-top: 0px;
  margin-bottom: 0px;

}

.auth-toggle-password:hover {
  opacity: 0.8;
}

.auth-eye-icon {
  width: 15px;
  height: 11px;
}

.auth-eye-icon-crossed {
  width: 17px;
  height: 15px;
}

/* Submit Button */
.auth-submit {
  width: 100% !important;
  background-color: #00b3de !important;
  color: white !important;
  font-size: 1rem !important;
  font-weight: 600 !important;
  padding: 0.75rem 1rem !important;
  border: none !important;
  border-radius: 6px !important;
  cursor: pointer !important;
  transition: opacity 0.2s !important;
  margin-top: 1.25rem !important;
  margin-right: 0px !important;
  margin-left: 0px !important;
}

.auth-submit:hover:not(:disabled) {
  opacity: 0.8 !important;
  background-color: #00b3de !important;
}

.auth-submit:disabled {
  opacity: 0.6 !important;
  cursor: not-allowed !important;
  background-color: #00b3de !important;
}

/* Footer Text */
.auth-footer-text {
  text-align: center;
  font-size: 1.125rem;
  color: #212529;
  font-weight: 500;
  margin-top: 3rem;
}

.auth-link {
  color: #00b3de;
  text-decoration: underline;
  cursor: pointer;
}

.auth-link:hover {
  opacity: 0.8;
}

/* Responsive - Mobile */
@media (max-width: 768px) {
  .auth-modal-overlay {
    align-items: flex-end;
  }

  .auth-modal {
    position: fixed;
    top: auto;
    left: 0;
    right: 0;
    bottom: 0;
    transform: none;
    width: 100%;
    max-width: 100%;
    max-height: 90vh;
    border-radius: 16px 16px 0 0;
    margin: 0;
  }

  .auth-modal-content {
    padding: 1.5rem;
    padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 1.5rem);
  }

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

  .auth-footer-text {
    font-size: 1rem;
  }
}
